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
Tested on respective versions outlined in the README. .24, .28, and .29
What version of Bazel are you using?
4.2.2
Does this issue reproduce with the latest releases of all the above?
Yes
What operating system and processor architecture are you using?
Ubuntu and x86-64.
What did you do?
I updated cloud.google.com/go/storage from v1.6.0 to v1.8.2
go get go get cloud.google.com/go/storage
bazel run //:gazelle -- update-repos -from_file=go.mod -to_macro=repositories.bzl%go_repositories
bazel run //:gazelle
bazel test //...:all
What did you expect to see?
I expected my tests to run successfully.
What did you see instead?
[HIDDEN]/external/com_google_cloud_go_storage/BUILD.bazel:3:11: no such package '@org_golang_google_genproto//googleapis/storage/v2': BUILD file not found in directory 'googleapis/storage/v2' of external repository @org_golang_google_genproto. Add a BUILD file to a directory to mark it as a package. and referenced by '@com_google_cloud_go_storage//:go_default_library'
The version of genproto in my repositoies is
go_repository(
name = "org_golang_google_genproto",
importpath = "google.golang.org/genproto",
sum = "h1:I0YcKz0I7OAhddo7ya8kMnvprhcWM045PmkBdMO9zN0=",
version = "v0.0.0-20211208223120-3a66f561d7aa",
)
Which does have googleapis/storage/v2, It appears it's not using the correct version.
The text was updated successfully, but these errors were encountered:
This is happening to me as well. Digging into the bazel cache it looks to me like the target is being sourced from the wrong repository?
deps.bzl
go_repository(
name = "com_google_cloud_go_storage",
importpath = "cloud.google.com/go/storage",
sum = "h1:5NQw6tOn3eMm0oE8vTkfjau18kjL79FlMjy/CHTpmoY=",
version = "v1.18.2",
)
go_repository(
name = "org_golang_google_genproto",
importpath = "google.golang.org/genproto",
sum = "h1:Et6SkiuvnBn+SgrSYXs/BrUpGB4mbdwt4R3vaPIlicA=",
version = "v0.0.0-20220107163113-42d7afdf6368",
)
Looking in my bazel cache at com_google_cloud_go_storage it looks like it's dep should probably be on the repo @org_golang_google_api not @org_golang_google_genproto. For context v1:storage and a bunch of other apis are at the other repository.
I'm still pretty novice with bazel and golang. Does the go_repository macro basically download the source and then inject WORKSPACE and BUILD files to "bazelify" for these third party dependencies?
What version of gazelle are you using?
I tested this on .22, .23, and .24
What version of rules_go are you using?
Tested on respective versions outlined in the README. .24, .28, and .29
What version of Bazel are you using?
4.2.2
Does this issue reproduce with the latest releases of all the above?
Yes
What operating system and processor architecture are you using?
Ubuntu and x86-64.
What did you do?
I updated cloud.google.com/go/storage from v1.6.0 to v1.8.2
What did you expect to see?
I expected my tests to run successfully.
What did you see instead?
The version of genproto in my repositoies is
Which does have googleapis/storage/v2, It appears it's not using the correct version.
The text was updated successfully, but these errors were encountered: