-
Notifications
You must be signed in to change notification settings - Fork 633
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rules_go provides no bzl_library targets #2619
Comments
There are a few minor manual modifications that needed to be performed. For example, some `.bzl` files depend on `.bzl` files that are generated outside of this repo and do not presently exist. `@bazel_tools` is a great example of this. Additionally this effort has revealed that bazel gazelle has an explicit dependency on the private parts of rules_go in internal/gazelle_binary.bzl on line 21 where it imports from `go/private:rules/transitions.bzl` which is no longer the path to import from once I created the BUILD file in `go/private/rules`. As a temporary fix for this, I'm included a patch that changes that to point to the new path. I will provide a follow up patch once rules_go has been released to fix it properly in the gazelle repo and then remove the patch from rules_go. Fixed: bazelbuild#2619 Bug: bazelbuild/bazel-skylib#250 Bug: bazelbuild/bazel-gazelle#803
I generally agree we should do this. I think this is best implemented using the new Both of these PRs are significant changes right before a release, so this won't make it into |
There are a few minor manual modifications that needed to be performed. For example, some `.bzl` files depend on `.bzl` files that are generated outside of this repo and do not presently exist. `@bazel_tools` is a great example of this. Additionally this effort has revealed that bazel gazelle has an explicit dependency on the private parts of rules_go in internal/gazelle_binary.bzl on line 21 where it imports from `go/private:rules/transitions.bzl` which is no longer the path to import from once I created the BUILD file in `go/private/rules`. As a temporary fix for this, I'm included a patch that changes that to point to the new path. I will provide a follow up patch once rules_go has been released to fix it properly in the gazelle repo and then remove the patch from rules_go. Fixed: bazelbuild#2619 Bug: bazelbuild/bazel-skylib#250 Bug: bazelbuild/bazel-gazelle#803 Co-authored-by: Andreas Herrmann <andreas.herrmann@tweag.io>
There are a few minor manual modifications that needed to be performed. For example, some `.bzl` files depend on `.bzl` files that are generated outside of this repo and do not presently exist. `@bazel_tools` is a great example of this. Additionally this effort has revealed that bazel gazelle has an explicit dependency on the private parts of rules_go in internal/gazelle_binary.bzl on line 21 where it imports from `go/private:rules/transitions.bzl` which is no longer the path to import from once I created the BUILD file in `go/private/rules`. As a temporary fix for this, I'm included a patch that changes that to point to the new path. I will provide a follow up patch once rules_go has been released to fix it properly in the gazelle repo and then remove the patch from rules_go. Fixed: bazelbuild#2619 Bug: bazelbuild/bazel-skylib#250 Bug: bazelbuild/bazel-gazelle#803 Co-authored-by: Andreas Herrmann <andreas.herrmann@tweag.io>
There are a few minor manual modifications that needed to be performed. For example, some `.bzl` files depend on `.bzl` files that are generated outside of this repo and do not presently exist. `@bazel_tools` is a great example of this. Additionally this effort has revealed that bazel gazelle has an explicit dependency on the private parts of rules_go in internal/gazelle_binary.bzl on line 21 where it imports from `go/private:rules/transitions.bzl` which is no longer the path to import from once I created the BUILD file in `go/private/rules`. As a temporary fix for this, I'm included a patch that changes that to point to the new path. I will provide a follow up patch once rules_go has been released to fix it properly in the gazelle repo and then remove the patch from rules_go. Fixed: bazelbuild#2619 Bug: bazelbuild/bazel-skylib#250 Bug: bazelbuild/bazel-gazelle#803 Co-authored-by: Andreas Herrmann <andreas.herrmann@tweag.io>
There are a few minor manual modifications that needed to be performed. For example, some `.bzl` files depend on `.bzl` files that are generated outside of this repo and do not presently exist. `@bazel_tools` is a great example of this. Additionally this effort has revealed that bazel gazelle has an explicit dependency on the private parts of rules_go in internal/gazelle_binary.bzl on line 21 where it imports from `go/private:rules/transitions.bzl` which is no longer the path to import from once I created the BUILD file in `go/private/rules`. As a temporary fix for this, I'm included a patch that changes that to point to the new path. I will provide a follow up patch once rules_go has been released to fix it properly in the gazelle repo and then remove the patch from rules_go. Fixed: bazelbuild#2619 Bug: bazelbuild/bazel-skylib#250 Bug: bazelbuild/bazel-gazelle#803 Co-authored-by: Andreas Herrmann <andreas.herrmann@tweag.io>
There are a few minor manual modifications that needed to be performed. For example, some `.bzl` files depend on `.bzl` files that are generated outside of this repo and do not presently exist. `@bazel_tools` is a great example of this. Additionally this effort has revealed that bazel gazelle has an explicit dependency on the private parts of rules_go in internal/gazelle_binary.bzl on line 21 where it imports from `go/private:rules/transitions.bzl` which is no longer the path to import from once I created the BUILD file in `go/private/rules`. As a temporary fix for this, I'm included a patch that changes that to point to the new path. I will provide a follow up patch once rules_go has been released to fix it properly in the gazelle repo and then remove the patch from rules_go. Fixed: bazelbuild#2619 Bug: bazelbuild/bazel-skylib#250 Bug: bazelbuild/bazel-gazelle#803 Co-authored-by: Andreas Herrmann <andreas.herrmann@tweag.io>
There are a few minor manual modifications that needed to be performed. For example, some .bzl files depend on .bzl files that are generated outside of this repo and do not presently exist. @bazel_tools is a great example of this. Additionally this effort has revealed that bazel gazelle has an explicit dependency on the private parts of rules_go in internal/gazelle_binary.bzl on line 21 where it imports from go/private:rules/transitions.bzl which is no longer the path to import from once I created the BUILD file in go/private/rules. As a temporary fix for this, I'm included a patch that changes that to point to the new path. I will provide a follow up patch once rules_go has been released to fix it properly in the gazelle repo and then remove the patch from rules_go. Fixed: #2619 Bug: bazelbuild/bazel-skylib#250 Bug: bazelbuild/bazel-gazelle#803
What version of rules_go are you using?
v0.23.8
What version of gazelle are you using?
none
What version of Bazel are you using?
3.3.1
Does this issue reproduce with the latest releases of all the above?
Yes
What operating system and processor architecture are you using?
Ubuntu 20.04 x86_64
Any other potentially useful information about your toolchain?
n/a
What did you do?
I've defined a
stardoc
target for a rule set that itself usesrules_go
. Thestardoc
rule has adeps
attribute that expectsbzl_library
targets. The transitive closure of thedeps
attribute must cover all*.bzl
files that are loaded directly or indirectly by the rules to be documented.rules_go
does not expose abzl_library
attribute, hence I cannot specify it as a dependency on my use-case and cannot generate Stardoc documentation for my use-case.What did you expect to see?
That rules_go defines a
bzl_library
target forrules_go
that includes all relevant.bzl
files.What did you see instead?
That rules_go defines no
bzl_library
target.The text was updated successfully, but these errors were encountered: