You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to install Dex from source on Ubuntu 22.04 with golang 1.21.1 and getting an error:
$ go install github.com/dexidp/dex/cmd/dex@latest
[...]
go/pkg/mod/github.com/coreos/[email protected]+incompatible/clientv3/balancer/resolver/endpoint/endpoint.go:114:87: undefined: resolver.BuildOption
go/pkg/mod/github.com/coreos/[email protected]+incompatible/clientv3/balancer/resolver/endpoint/endpoint.go:115:16: target.Authority undefined (type resolver.Target has no field or method Authority)
go/pkg/mod/github.com/coreos/[email protected]+incompatible/clientv3/balancer/resolver/endpoint/endpoint.go:118:15: target.Authority undefined (type resolver.Target has no field or method Authority)
go/pkg/mod/github.com/coreos/[email protected]+incompatible/clientv3/balancer/resolver/endpoint/endpoint.go:182:40: undefined: resolver.ResolveNowOption
# github.com/coreos/etcd/clientv3/balancer/picker
go/pkg/mod/github.com/coreos/[email protected]+incompatible/clientv3/balancer/picker/err.go:37:53: undefined: balancer.PickOptions
go/pkg/mod/github.com/coreos/[email protected]+incompatible/clientv3/balancer/picker/roundrobin_balanced.go:55:63: undefined: balancer.PickOptions
# github.com/dexidp/dex/storage/sql
go/pkg/mod/github.com/dexidp/[email protected]+incompatible/storage/sql/sql.go:104:14: cannot use crdb.ExecuteTx (value of type func(ctx context.Context, db *"database/sql".DB, opts *"database/sql".TxOptions, fn func(*"database/sql".Tx) error) error) as func(db *"database/sql".DB, fn func(*"database/sql".Tx) error) error value in struct literal
In case there was a breaking change since the last release, I specified the commit associated with the last release (v2.37.0) and got a different error:
$ go install github.com/dexidp/dex/cmd/dex@08bb7fb98b164ab078be17ecda4077b2d21c9bb3
go: github.com/dexidp/dex/cmd/dex@08bb7fb98b164ab078be17ecda4077b2d21c9bb3 (in github.com/dexidp/[email protected]):
The go.mod file for the module providing named packages contains one or
more replace directives. It must not contain directives that would cause
it to be interpreted differently than if it were the main module.
Any suggestions for how to get past these issues?
Thanks.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I'm trying to install Dex from source on Ubuntu 22.04 with golang 1.21.1 and getting an error:
In case there was a breaking change since the last release, I specified the commit associated with the last release (v2.37.0) and got a different error:
Any suggestions for how to get past these issues?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions