Abc-Arbitrage / infix

MIT License
40 stars 6 forks source link

Dockerfile problems #9

Open kalj opened 3 years ago

kalj commented 3 years ago

I am trying to build this for running on a raspberry pi 3, but I get the following errors:

 ---> Running in 6d36561e6039
Solving failure: No versions of github.com/schollz/progressbar met constraints:
    v3.7.3: Could not introduce github.com/schollz/progressbar@v3.7.3, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    v3.7.2: Could not introduce github.com/schollz/progressbar@v3.7.2, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    v3.7.1: Could not introduce github.com/schollz/progressbar@v3.7.1, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    v3.7.0: Could not introduce github.com/schollz/progressbar@v3.7.0, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    v3.6.2: Could not introduce github.com/schollz/progressbar@v3.6.2, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    v3.6.1: Could not introduce github.com/schollz/progressbar@v3.6.1, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    v3.6.0: Could not introduce github.com/schollz/progressbar@v3.6.0, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    v3.5.1: Could not introduce github.com/schollz/progressbar@v3.5.1, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    v3.5.0: Could not introduce github.com/schollz/progressbar@v3.5.0, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    v3.4.0: Could not introduce github.com/schollz/progressbar@v3.4.0, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    v3.3.5: Could not introduce github.com/schollz/progressbar@v3.3.5, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    v3.3.4: Could not introduce github.com/schollz/progressbar@v3.3.4, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    v3.3.3: Could not introduce github.com/schollz/progressbar@v3.3.3, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    v3.3.2: Could not introduce github.com/schollz/progressbar@v3.3.2, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    v3.3.1: Could not introduce github.com/schollz/progressbar@v3.3.1, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    v3.3.0: Could not introduce github.com/schollz/progressbar@v3.3.0, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    v3.2.3: Could not introduce github.com/schollz/progressbar@v3.2.3, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    v3.2.2: Could not introduce github.com/schollz/progressbar@v3.2.2, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    v3.2.1: Could not introduce github.com/schollz/progressbar@v3.2.1, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    v3.2.0: Could not introduce github.com/schollz/progressbar@v3.2.0, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    v3.1.1: Could not introduce github.com/schollz/progressbar@v3.1.1, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    v3.1.0: Could not introduce github.com/schollz/progressbar@v3.1.0, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    v3.0.2: Could not introduce github.com/schollz/progressbar@v3.0.2, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    v3.0.1: Could not introduce github.com/schollz/progressbar@v3.0.1, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    v3.0.0: Could not introduce github.com/schollz/progressbar@v3.0.0, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    v2.15.0: Could not introduce github.com/schollz/progressbar@v2.15.0, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    v2.14.2: Could not introduce github.com/schollz/progressbar@v2.14.2, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    v2.14.1: Could not introduce github.com/schollz/progressbar@v2.14.1, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    v2.14.0: Could not introduce github.com/schollz/progressbar@v2.14.0, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    v2.13.2: Could not introduce github.com/schollz/progressbar@v2.13.2, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    v2.13.1: Could not introduce github.com/schollz/progressbar@v2.13.1, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    v2.13.0: Could not introduce github.com/schollz/progressbar@v2.13.0, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    v2.12.2: Could not introduce github.com/schollz/progressbar@v2.12.2, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    v2.12.1: Could not introduce github.com/schollz/progressbar@v2.12.1, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    v2.12.0: Could not introduce github.com/schollz/progressbar@v2.12.0, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    v2.11.0: Could not introduce github.com/schollz/progressbar@v2.11.0, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    v2.10.0: Could not introduce github.com/schollz/progressbar@v2.10.0, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    v2.9.1: Could not introduce github.com/schollz/progressbar@v2.9.1, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    v2.9.0: Could not introduce github.com/schollz/progressbar@v2.9.0, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    v2.8.0: Could not introduce github.com/schollz/progressbar@v2.8.0, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    v2.7.1: Could not introduce github.com/schollz/progressbar@v2.7.1, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    v2.7.0: Could not introduce github.com/schollz/progressbar@v2.7.0, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    v2.6.0: Could not introduce github.com/schollz/progressbar@v2.6.0, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    v2.5.3: Could not introduce github.com/schollz/progressbar@v2.5.3, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    v2.5.2: Could not introduce github.com/schollz/progressbar@v2.5.2, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    v2.5.1: Could not introduce github.com/schollz/progressbar@v2.5.1, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    v2.5.0: Could not introduce github.com/schollz/progressbar@v2.5.0, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    v2.4.0: Could not introduce github.com/schollz/progressbar@v2.4.0, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    v2.3.1: Could not introduce github.com/schollz/progressbar@v2.3.1, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    v2.3.0: Could not introduce github.com/schollz/progressbar@v2.3.0, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    v2.2.0: Could not introduce github.com/schollz/progressbar@v2.2.0, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    v2.1.1: Could not introduce github.com/schollz/progressbar@v2.1.1, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    v2.1.0: Could not introduce github.com/schollz/progressbar@v2.1.0, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    v2.0.0: Could not introduce github.com/schollz/progressbar@v2.0.0, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    v1.0.0: Could not introduce github.com/schollz/progressbar@v1.0.0, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    v0.6.0: Could not introduce github.com/schollz/progressbar@v0.6.0, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    v0.5.0: Could not introduce github.com/schollz/progressbar@v0.5.0, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    v0.4: Could not introduce github.com/schollz/progressbar@v0.4, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    v0.3.1: Could not introduce github.com/schollz/progressbar@v0.3.1, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    v0.3.0: Could not introduce github.com/schollz/progressbar@v0.3.0, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    v0.2.0: Could not introduce github.com/schollz/progressbar@v0.2.0, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    v0.1.0: Could not introduce github.com/schollz/progressbar@v0.1.0, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    master: Could not introduce github.com/schollz/progressbar@master, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    finish: Could not introduce github.com/schollz/progressbar@finish, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    percent: Could not introduce github.com/schollz/progressbar@percent, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    runewidth: Could not introduce github.com/schollz/progressbar@runewidth, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    spinners: Could not introduce github.com/schollz/progressbar@spinners, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
    time: Could not introduce github.com/schollz/progressbar@time, as its subpackage github.com/schollz/progressbar/v3 is missing. (Package is required by (root).)
The command '/bin/sh -c dep ensure' returned a non-zero code: 1

Any clue what can be the problem?

oktal commented 3 years ago

Hello,

It looks like the last commit (which introduced the progressbar), causes the issue you have.

Could you try to build from the previous commit ?

git checkout HEAD~1 dep ensure go build -o infix

kalj commented 3 years ago

Tried that, then I instead got:

go: inconsistent vendoring in /go/src/github.com/Abc-Arbitrage/infix:
    collectd.org@v0.5.0: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
    github.com/RoaringBitmap/roaring@v0.4.23: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
    github.com/bmizerany/pat@v0.0.0-20170815010413-6226ea591a40: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
    github.com/cespare/xxhash@v1.1.0: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
    github.com/dgryski/go-bits@v0.0.0-20180113010104-bd8a69a71dc2: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
    github.com/dgryski/go-bitstream@v0.0.0-20180413035011-3522498ce2c8: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
    github.com/glycerine/go-unsnap-stream@v0.0.0-20190901134440-81cf024a9e0a: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
    github.com/gogo/protobuf@v1.3.1: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
    github.com/golang/snappy@v0.0.1: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
    github.com/google/go-cmp@v0.5.2: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
    github.com/influxdata/influxdb@v1.5.5: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
    github.com/influxdata/influxql@v1.1.0: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
    github.com/influxdata/usage-client@v0.0.0-20160829180054-6d3895376368: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
    github.com/influxdata/yamux@v0.0.0-20171107173414-1f58ded512de: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
    github.com/influxdata/yarpc@v0.0.1: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
    github.com/jsternberg/zap-logfmt@v1.2.0: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
    github.com/jwilder/encoding@v0.0.0-20170811194829-b4e1701a28ef: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
    github.com/kylelemons/godebug@v1.1.0: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
    github.com/mattn/go-isatty@v0.0.12: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
    github.com/mschoch/smat@v0.1.0: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
    github.com/naoina/go-stringutil@v0.1.0: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
    github.com/naoina/toml@v0.1.1: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
    github.com/opentracing/opentracing-go@v1.2.0: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
    github.com/prometheus/client_golang@v1.8.0: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
    github.com/stretchr/testify@v1.5.1: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
    github.com/tinylib/msgp@v1.1.2: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
    github.com/xlab/treeprint@v1.0.0: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
    go.uber.org/zap@v1.14.1: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
    golang.org/x/sync@v0.0.0-20200317015054-43a5402ce75a: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt

run 'go mod vendor' to sync, or use -mod=mod or -mod=readonly to ignore the vendor directory

I then added the suggested RUN go mod vendor before the build command and then it worked! I am a go noob, so that didn't make any sense to me. Why was this needed?

oktal commented 3 years ago

I'm not quite sure, it looks like there is still ongoing work with go modules and I'm not sure why vendoring is enabled here.

When you run go mod vendor, does it work on HEAD (top master) ?