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've a go project currently using dep which has package constraints using the source directive that allows to use forks of packages without changing their names.
Gopkg.toml :
[[constraint]]
name = "github.com/prometheus/client_golang"
revision = "3347d9b107629a2e31c401594dfa45e1a894d16c"
source = "github.com/sylr/prometheus-client-golang"
[[constraint]]
name = "github.com/Azure/azure-sdk-for-go"
revision = "182e361c74920501df5b492a982002fcd49b5a29"
source = "https://github.com/sylr/azure-sdk-for-go.git"
What version of Go are you using (
go version
)?What operating system and processor architecture are you using (
go env
)?What did you do?
I've a go project currently using
dep
which has package constraints using thesource
directive that allows to use forks of packages without changing their names.Gopkg.toml :
Gopkg.lock:
I tried to use
go modules init
to migrate from dep to modules but it failed on the packages mentioned above :You can reproduce using sylr/prometheus-azure-exporter@bab5c8a
What did you expect to see?
I expected go modules init to honnor the source directive of Gopkg.lock files.
Cheers
The text was updated successfully, but these errors were encountered: