Created
August 8, 2019 22:35
-
-
Save ianfoo/ae555228574b82e31e3b023cf2ed3216 to your computer and use it in GitHub Desktop.
Error building Zeit project with two Go functions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| TaskID 0999ab9e-b992-43a1-9690-fcda177f0243 | |
| TaskID 0999ab9e-b992-43a1-9690-fcda177f0243 | |
| yarn info @now/build-utils@latest... | |
| yarn info @now/go... | |
| yarn add @now/[email protected]... | |
| yarn add v1.16.0 | |
| info No lockfile found. | |
| [1/4] Resolving packages... | |
| [2/4] Fetching packages... | |
| [3/4] Linking dependencies... | |
| [4/4] Building fresh packages... | |
| success Saved lockfile. | |
| success Saved 1 new dependency. | |
| info Direct dependencies | |
| └─ @now/[email protected] | |
| info All dependencies | |
| └─ @now/[email protected] | |
| Done in 0.48s. | |
| yarn add @now/[email protected]... | |
| yarn add v1.16.0 | |
| info No lockfile found. | |
| [1/4] Resolving packages... | |
| [2/4] Fetching packages... | |
| [3/4] Linking dependencies... | |
| [4/4] Building fresh packages... | |
| success Saved lockfile. | |
| success Saved 1 new dependency. | |
| info Direct dependencies | |
| └─ @now/[email protected] | |
| info All dependencies | |
| └─ @now/[email protected] | |
| Done in 0.70s. | |
| yarn run now-postinstall... | |
| yarn run v1.16.0 | |
| $ node dist/install/index.js | |
| Downloading Go ... | |
| Done in 8.16s. | |
| yarn info @now/build-utils@latest... | |
| yarn info @now/go... | |
| running builder.exports.build... | |
| Downloading user files... | |
| Parsing AST for "api/date.go" | |
| Downloading Go ... | |
| running builder.exports.build... | |
| Downloading user files... | |
| Parsing AST for "api/now.go" | |
| go: cannot find GOROOT directory: /usr/local/go | |
| Failed to parse AST for "api/now.go" | |
| { Error: Command failed: go build -ldflags -s -w -o /tmp/e61dac4b09bfcf84/.build-utils/.builder/node_modules/@now/go/dist/analyze /tmp/e61dac4b09bfcf84/.build-utils/.builder/node_modules/@now/go/dist/analyze.go | |
| at makeError (/tmp/e61dac4b09bfcf84/.build-utils/.builder/node_modules/@now/go/dist/index.js:39080:9) | |
| at Promise.all.then.arr (/tmp/e61dac4b09bfcf84/.build-utils/.builder/node_modules/@now/go/dist/index.js:39184:16) | |
| at <anonymous> | |
| at process._tickDomainCallback (internal/process/next_tick.js:228:7) | |
| code: 2, | |
| stdout: null, | |
| stderr: null, | |
| failed: true, | |
| signal: null, | |
| cmd: 'go build -ldflags -s -w -o /tmp/e61dac4b09bfcf84/.build-utils/.builder/node_modules/@now/go/dist/analyze /tmp/e61dac4b09bfcf84/.build-utils/.builder/node_modules/@now/go/dist/analyze.go', | |
| timedOut: false, | |
| killed: false } | |
| done | |
| go: finding github.com/zeit/now-builders/utils latest | |
| go: finding github.com/zeit/now-builders latest | |
| go: downloading github.com/zeit/now-builders v0.0.0-20190808002248-0f655daa3097 | |
| go: extracting github.com/zeit/now-builders v0.0.0-20190808002248-0f655daa3097 | |
| go: finding github.com/aws/aws-lambda-go/events latest | |
| go: finding github.com/aws/aws-lambda-go/lambda latest | |
| go: finding github.com/aws/aws-lambda-go v1.12.1 | |
| go: downloading github.com/aws/aws-lambda-go v1.12.1 | |
| go: extracting github.com/aws/aws-lambda-go v1.12.1 | |
| go: finding github.com/stretchr/testify v1.3.0 | |
| go: finding github.com/urfave/cli v1.21.0 | |
| go: finding github.com/davecgh/go-spew v1.1.0 | |
| go: finding github.com/pmezard/go-difflib v1.0.0 | |
| go: finding github.com/stretchr/objx v0.1.0 | |
| go: finding github.com/BurntSushi/toml v0.3.1 | |
| go: finding gopkg.in/yaml.v2 v2.2.2 | |
| go: finding gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 | |
| go: downloading github.com/stretchr/testify v1.3.0 | |
| go: extracting github.com/stretchr/testify v1.3.0 | |
| go: downloading github.com/davecgh/go-spew v1.1.0 | |
| go: downloading github.com/pmezard/go-difflib v1.0.0 | |
| go: extracting github.com/pmezard/go-difflib v1.0.0 | |
| go: extracting github.com/davecgh/go-spew v1.1.0 | |
| Running `go build`... | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment