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

fix docker build error: cannot install geoipupdate #110

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

morawskim
Copy link

Hello

For latest master version we cannot build docker image.
This PR update geoipupdate version.

The old version requires "github.com/theckman/go-flock" instead of "github.com/gofrs/flock".
See for example - Update README to replace references to theckman/go-flock

[.......]
Step 4/35 : RUN go install github.com/maxmind/geoipupdate/cmd/geoipupdate@latest
 ---> Running in d42a9abc86bd
go: downloading github.com/maxmind/geoipupdate v4.0.2+incompatible
go: finding module for package github.com/theckman/go-flock
go: finding module for package github.com/pkg/errors
go: finding module for package github.com/spf13/pflag
go: downloading github.com/spf13/pflag v1.0.5
go: downloading github.com/pkg/errors v0.9.1
go: downloading github.com/theckman/go-flock v0.9.0
go: found github.com/pkg/errors in github.com/pkg/errors v0.9.1
go: found github.com/spf13/pflag in github.com/spf13/pflag v1.0.5
go: found github.com/theckman/go-flock in github.com/theckman/go-flock v0.9.0
go: github.com/maxmind/geoipupdate/cmd/geoipupdate imports
	github.com/theckman/go-flock: github.com/theckman/[email protected]: parsing go.mod:
	module declares its path as: github.com/gofrs/flock
	        but was required as: github.com/theckman/go-flock
The command '/bin/sh -c go install github.com/maxmind/geoipupdate/cmd/geoipupdate@latest' returned a non-zero code: 1

Steps to reproduce

Clone repository git clone https://github.com/trimstray/htrace.sh.git
Build image cd htrace.sh && build/build.sh
The error appear during installing geoipupdate.

morawskim added a commit to morawskim/packer-images that referenced this pull request Jun 27, 2024
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

Successfully merging this pull request may close these issues.

None yet

1 participant