-
Notifications
You must be signed in to change notification settings - Fork 393
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
Can gazelle generate go_tool_library? #747
Comments
Can you use
and map it to a |
Where would I put that directive? I tried this go_repository(
name = "com_github_securego_gosec",
importpath = "github.com/securego/gosec",
sum = "h1:rq2/kILQnPtq5oL4+IAjgVOjh5e2yj2aaCYi7squEvI=",
version = "v0.0.0-20200401082031-e946c8c39989",
# gazelle:map_kind go_library go_tool_library @io_bazel_rules_go//go:def.bzl
) But it seems the rules are still go_library.
|
I'm terribly sorry, I didn't understand something about this. Let me revise. In @jayconrod do you have any idea on the next way direction to go here? Is the correct move to use patch to replace or to add a flag to gazelle allowing you to pass in directives? |
Gazelle won't support Closing this issue just to say this won't be supported. Happy to continue discussion though. |
Thanks @jayconrod. Looking forward to your transitional rules rewrite! |
What version of gazelle are you using?
0.22.0
What version of rules_go are you using?
0.22.2
What version of Bazel are you using?
2.1.1
Does this issue reproduce with the latest releases of all the above?
N/A
What operating system and processor architecture are you using?
linux amd64
What did you do?
I'm trying to use github.com/securego/gosec as a third_party dependency via workspace go_repository in a go_tool_library analyzer. The problem I have is that gazelle only generates the go_default_library's which cause a dependency loop on nogo.
My question is: is there a way to direct gazelle to generate go_tool_library in addition to go_default_library?
What did you expect to see?
N/A
What did you see instead?
N/A
The text was updated successfully, but these errors were encountered: