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
Custom checkout from commit 23226de, vendored in a bazel registry.
What version of rules_go are you using?
0.39.1
What version of Bazel are you using?
6.1.2
Does this issue reproduce with the latest releases of all the above?
Yes.
What operating system and processor architecture are you using?
Gentoo x86_64
What did you do?
I need to patch a transitive cgo dependency. How can I apply a patch to "an_implicit_dependency_in_need_of_patching"? In general, how can I override the attributes of dependencies that are generated this way?
# MODULE.bazelbazel_dep(name="rules_go", version="0.39.1")
bazel_dep(name="gazelle", version="23226de")
go_deps=use_extension("@gazelle//:extensions.bzl", "go_deps")
go_deps.from_file(go_mod="//:go.mod")
# Generates ~100 deps. I need to only patch "an_implicit_dependency_in_need_of_patching"use_repo(
go_deps,
"some_primary_dependency_with_many_deps",
)
In case this is not possible yet, how can I tell gazelle to skip it when reading go.mod and use a provided bazel_dep instead?
Perhaps the go_deps.module_override tag's "patches" field would help here, if you can specify the Go module path that leads to the creation of this "an_implicit_dependency_in_need_of_patching" Bazel repository.
What version of gazelle are you using?
Custom checkout from commit 23226de, vendored in a bazel registry.
What version of rules_go are you using?
0.39.1
What version of Bazel are you using?
6.1.2
Does this issue reproduce with the latest releases of all the above?
Yes.
What operating system and processor architecture are you using?
Gentoo x86_64
What did you do?
I need to patch a transitive cgo dependency. How can I apply a patch to
"an_implicit_dependency_in_need_of_patching"
? In general, how can I override the attributes of dependencies that are generated this way?In case this is not possible yet, how can I tell gazelle to skip it when reading
go.mod
and use a providedbazel_dep
instead?@fmeum @tyler-french @seh
The text was updated successfully, but these errors were encountered: