Giter VIP home page Giter VIP logo

Comments (3)

rektbuildr avatar rektbuildr commented on July 22, 2024

Seems like redis recently made backward incompatible API changes: redis/go-redis#1333

May be solved by #17

from ortelius.

rektbuildr avatar rektbuildr commented on July 22, 2024

The build still fails after #17. Same error on services/avm_index/redis.go

# github.com/ava-labs/ortelius/services/avm_index
services/avm_index/redis.go:44:20: not enough arguments in call to pipe.Set
	have (string, []byte, number)
	want (context.Context, string, interface {}, time.Duration)
services/avm_index/redis.go:48:21: not enough arguments in call to pipe.Incr
	have (string)
	want (context.Context, string)
services/avm_index/redis.go:52:22: cannot use recentTxsKey (type string) as type context.Context in argument to pipe.LPush:
	string does not implement context.Context (missing Deadline method)
services/avm_index/redis.go:56:22: not enough arguments in call to pipe.LTrim
	have (string, number, number)
	want (context.Context, string, int64, int64)
services/avm_index/redis.go:60:21: not enough arguments in call to pipe.Exec
	have ()
	want (context.Context)
services/avm_index/redis.go:66:21: not enough arguments in call to r.client.cmdable.Get
	have (string)
	want (context.Context, string)
services/avm_index/redis.go:75:21: not enough arguments in call to r.client.cmdable.Get
	have (string)
	want (context.Context, string)
services/avm_index/redis.go:84:24: not enough arguments in call to r.client.cmdable.LRange
	have (string, number, int64)
	want (context.Context, string, int64, int64)
ERROR: Service 'stream-consumer' failed to build: The command '/bin/sh -c go get ./cmds/...' returned a non-zero code: 2

Passing client.Context() as first parameter leads to a successful build:

Step 5/12 : RUN go get ./cmds/...
 ---> Using cache
 ---> 25bcc524fba4
Step 6/12 : RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /opt/orteliusd ./cmds/orteliusd/*.go
 ---> Using cache
 ---> ff2bdb53f029
Step 7/12 : FROM scratch
 ---> 
Step 8/12 : VOLUME /var/log/ortelius
 ---> Using cache
 ---> 5c98b86b0f65
Step 9/12 : VOLUME /var/lib/ortelius
 ---> Using cache
 ---> 76e5b4eac49e
Step 10/12 : COPY --from=0 /opt/orteliusd /opt/orteliusd
 ---> Using cache
 ---> 130f04e45ee2
Step 11/12 : COPY --from=0 /go/src/github.com/ava-labs/ortelius/docker/config.json /var/lib/ortelius/config.json
 ---> Using cache
 ---> c1b85b4dfab1
Step 12/12 : ENTRYPOINT ["/opt/orteliusd"]
 ---> Using cache
 ---> 55dd94a01b3b
Successfully built 55dd94a01b3b
Successfully tagged docker_api:latest

Updated #17

from ortelius.

tyler-smith avatar tyler-smith commented on July 22, 2024

This is fixed now. Thanks for the report.

from ortelius.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.