riverqueue / river

Fast and reliable background jobs in Go
https://riverqueue.com
Mozilla Public License 2.0
3.51k stars 94 forks source link

Unable to install the CLI in v0.11.3 #538

Closed youssefsiam38 closed 2 months ago

youssefsiam38 commented 2 months ago

after running

go install github.com/riverqueue/river/cmd/river@latest

an error appeared

# github.com/riverqueue/river
../../../../go/pkg/mod/github.com/riverqueue/river@v0.11.3/client.go:481:27: undefined: baseservice.NewArchetype
../../../../go/pkg/mod/github.com/riverqueue/river@v0.11.3/client.go:659:30: c.baseStartStop.StoppedUnsafe undefined (type startstop.BaseStartStop has no field or method StoppedUnsafe)
../../../../go/pkg/mod/github.com/riverqueue/river@v0.11.3/client.go:720:23: undefined: startstop.StartAll

fixed when I downgraded to v0.11.2

brandur commented 2 months ago

Hmm, sorry for the trouble. I thought I'd tested this. Fix incoming.

nexovec commented 2 months ago

@brandur You're a legend.

brandur commented 2 months ago

Hey, we recently cut v0.11.4, which fixes this issue.

The Go proxy caches for some amount of time. so if @latest is still resolving to v0.11.3, then you may need to grab v0.11.4 explicitly:

$ go install github.com/riverqueue/river/cmd/river@v0.11.4

If that is showing some 404s due to Go proxy caching, then you may need to use env vars to bypass it for now:

$ GOPROXY=direct GOSUMDB=off go install github.com/riverqueue/river/cmd/river@v0.11.4
go: downloading github.com/riverqueue/river v0.11.4
go: downloading github.com/riverqueue/river/riverdriver v0.11.4
go: downloading github.com/riverqueue/river/riverdriver/riverpgxv5 v0.11.4
go: downloading github.com/riverqueue/river/rivertype v0.11.4
go: downloading github.com/riverqueue/river/rivershared v0.11.4

(None of that should be necessary a half hour or so from now.)

@nexovec Hah, dunno about that, but thanks for the sentiment :)