Skip to content
This repository was archived by the owner on Oct 19, 2019. It is now read-only.

README: Use go get -d to retrieve v8worker2#23

Open
dlespiau wants to merge 1 commit into
ry:masterfrom
jkcfg:2018-11-02-go-get-d
Open

README: Use go get -d to retrieve v8worker2#23
dlespiau wants to merge 1 commit into
ry:masterfrom
jkcfg:2018-11-02-go-get-d

Conversation

@dlespiau
Copy link
Copy Markdown
Contributor

@dlespiau dlespiau commented Nov 2, 2018

The very first time one tries to do a go get, it fails with:

  # pkg-config --cflags  -- v8.pc
  Failed to open 'v8.pc': No such file or directory
  No package 'v8.pc' found
  pkg-config: exit status 1

because go get will try to build the package and v8 hasn't been built yet and
the cgo pass of the compilation can't find the pkg-config file.

To avoid that, use the -d option: go get will only download the package and not
build it.

The very first time one tries to do a go get, it fails with:

  # pkg-config --cflags  -- v8.pc
  Failed to open 'v8.pc': No such file or directory
  No package 'v8.pc' found
  pkg-config: exit status 1

because go get will try to build the package and v8 hasn't been built yet and
the cgo pass of the compilation can't find the pkg-config file.

To avoid that, use the -d option: go get will only download the package and not
build it.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant