Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failure when upgrade to `v0.0.13` #57

Closed
chenrui333 opened this issue May 13, 2019 · 5 comments

Comments

Projects
None yet
2 participants
@chenrui333
Copy link

commented May 13, 2019

relates to Homebrew/homebrew-core#39770

failure log

==> go build -o /usr/local/Cellar/smimesign/0.0.13/bin/smimesign -ldflags -X main.versionString=0.0.13
command_verify.go:11:2: cannot find package "github.com/certifi/gocertifi" in any of:
	/usr/local/Cellar/go/1.12.5/libexec/src/github.com/certifi/gocertifi (from $GOROOT)
	/private/tmp/smimesign-20190513-77950-ig2itw/smimesign-0.0.13/src/github.com/certifi/gocertifi (from $GOPATH)
command_sign.go:12:2: cannot find package "github.com/mastahyeti/certstore" in any of:
	/usr/local/Cellar/go/1.12.5/libexec/src/github.com/mastahyeti/certstore (from $GOROOT)
	/private/tmp/smimesign-20190513-77950-ig2itw/smimesign-0.0.13/src/github.com/mastahyeti/certstore (from $GOPATH)
command_sign.go:13:2: cannot find package "github.com/mastahyeti/cms" in any of:
	/usr/local/Cellar/go/1.12.5/libexec/src/github.com/mastahyeti/cms (from $GOROOT)
	/private/tmp/smimesign-20190513-77950-ig2itw/smimesign-0.0.13/src/github.com/mastahyeti/cms (from $GOPATH)
main.go:11:2: cannot find package "github.com/pborman/getopt/v2" in any of:
	/usr/local/Cellar/go/1.12.5/libexec/src/github.com/pborman/getopt/v2 (from $GOROOT)
	/private/tmp/smimesign-20190513-77950-ig2itw/smimesign-0.0.13/src/github.com/pborman/getopt/v2 (from $GOPATH)
command_sign.go:14:2: cannot find package "github.com/pkg/errors" in any of:
	/usr/local/Cellar/go/1.12.5/libexec/src/github.com/pkg/errors (from $GOROOT)
	/private/tmp/smimesign-20190513-77950-ig2itw/smimesign-0.0.13/src/github.com/pkg/errors (from $GOPATH)
status.go:11:2: cannot find package "golang.org/x/crypto/openpgp/packet" in any of:
	/usr/local/Cellar/go/1.12.5/libexec/src/golang.org/x/crypto/openpgp/packet (from $GOROOT)
	/private/tmp/smimesign-20190513-77950-ig2itw/smimesign-0.0.13/src/golang.org/x/crypto/openpgp/packet (from $GOPATH)
status.go:12:2: cannot find package "golang.org/x/crypto/openpgp/s2k" in any of:
	/usr/local/Cellar/go/1.12.5/libexec/src/golang.org/x/crypto/openpgp/s2k (from $GOROOT)
	/private/tmp/smimesign-20190513-77950-ig2itw/smimesign-0.0.13/src/golang.org/x/crypto/openpgp/s2k (from $GOPATH)

failed build, https://jenkins.brew.sh/job/Homebrew%20Core%20Pull%20Requests/41860/version=mojave/console

@mastahyeti

This comment has been minimized.

Copy link
Member

commented May 13, 2019

What version of Go?

@chenrui333

This comment has been minimized.

Copy link
Author

commented May 13, 2019

Which version does it require? I did not see the version in the console log.

@chenrui333

This comment has been minimized.

Copy link
Author

commented May 13, 2019

I think it used go-1.12.5 as I did test locally.

@mastahyeti

This comment has been minimized.

Copy link
Member

commented May 14, 2019

Try with the GO111MODULE=on environment variable set.

@chenrui333

This comment has been minimized.

Copy link
Author

commented May 16, 2019

you are absolutely right, that is the root cause! 😄

Thanks for the help!

@chenrui333 chenrui333 closed this May 16, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.