trimstray / htrace.sh

My simple Swiss Army knife for http/https troubleshooting and profiling.
GNU General Public License v3.0
3.75k stars 233 forks source link

fix docker build error: cannot install geoipupdate #110

Open morawskim opened 2 months ago

morawskim commented 2 months ago

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/go-flock@v0.9.0: 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.

drinkrasniqi7 commented 2 months ago

ko