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

Cannot build via binary or docker with go 1.14 #408

Open
appleciderjack opened this issue Jun 15, 2020 · 0 comments
Open

Cannot build via binary or docker with go 1.14 #408

appleciderjack opened this issue Jun 15, 2020 · 0 comments

Comments

@appleciderjack
Copy link

Hi, nice work on the project!

I am looking to add tls flags as a branch, but I am coming up short when trying to build the binary.

go run mage.go binary
../../../.go/src/github.com/mholt/archiver/lz4.go:8:2: cannot find package "github.com/pierrec/lz4/v3" in any of:
        /usr/local/opt/go/libexec/src/github.com/pierrec/lz4/v3 (from $GOROOT)
        /Users/jack/.go/src/github.com/pierrec/lz4/v3 (from $GOPATH)
Error: error compiling magefiles
exit status 1

Checking in with the lz4 project page, and they suggested to add this flag:

GO111MODULE=on go get github.com/pierrec/lz4/v3
go: downloading github.com/pierrec/lz4 v1.0.1
go: downloading github.com/pierrec/lz4/v3 v3.3.2
go: downloading github.com/pierrec/lz4 v2.5.2+incompatible
go: github.com/pierrec/lz4/v3 upgrade => v3.3.2

But for mage, it seems that that alone is not enough to fix it.

jack@Jacks-MacBook-Pro-2 postgres_exporter % GO111MODULE=on go run mage.go binary
mage.go:8:2: cannot find module providing package github.com/magefile/mage/mage: working directory is not part of a module
jack@Jacks-MacBook-Pro-2 postgres_exporter % go get -u -v github.com/magefile/mage@68374889480d95d7e4b6626a1843e7cb559ac3e4
go: cannot use path@version syntax in GOPATH mode
jack@Jacks-MacBook-Pro-2 postgres_exporter % go run mage.go docker
../../../.go/src/github.com/mholt/archiver/lz4.go:8:2: cannot find package "github.com/pierrec/lz4/v3" in any of:
        /usr/local/opt/go/libexec/src/github.com/pierrec/lz4/v3 (from $GOROOT)
        /Users/jack/.go/src/github.com/pierrec/lz4/v3 (from $GOPATH)
Error: error compiling magefiles
exit status 1

Any idea on how to proceed?
My current backup plan to is to do tls termination either via Nginx (if already present) or telegraf (with prometheus input and prometheus output plugins).

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant