-
-
Notifications
You must be signed in to change notification settings - Fork 686
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
go_repository fails to generate BUILD files for certain Go dependencies #3259
Comments
I meet it too. |
Also running into this issue as well (for a project using carvel tools that imports this library), so an indirect dependency is causing this on my end.
|
We add a patch to this dependency. It can work. |
I encountered this issue earlier today, do you mean there's been a fix since then? That commit/patch looks to be from 8 days ago. |
It just changed the bazel build file for |
Sorry I'm a bit confused. I'm still getting the same error that I pasted above that the BUILD file was not found in directory '' of external repository @com_github_rivo_uniseg. However, the patch you linked implies that BUILD file exists. Could you help clear up my confusion? Thanks |
Was this issue ever resolved? I'm still seeing this error on my end -
Any help would be greatly appreciated! |
@archit-bedrock did you manage to fix your issue? |
No I don't think I was able to fix it. |
@archit-bedrock was there a workaround for you or did you have to use something else? |
in case someone circles back: the newer versions require |
What version of rules_go are you using?
0.34.0
What version of gazelle are you using?
0.26.0
What version of Bazel are you using?
5.2.0
Does this issue reproduce with the latest releases of all the above?
Yes
What operating system and processor architecture are you using?
OS Version: macOS
System Version: 12.3.1
Build Version: 21E258
Architecture: ARM (M1)
What did you do?
bazel run gazelle
andbazel run update-repos
BUILD file not found in directory '' of external repository @com_github_rivo_uniseg. Add a BUILD file to a directory to mark it as a package.
This error is reproducible if you check out my open source repo, switch over to the
nickersoft/final
branch, and runbazel build go
. You'll notice that the generated Go repository it is mentioning does not contain a BUILD file, which is causing the error. The only similar issue I have found to this is this one, though the fixes over there don't seem to work for me.Additional Info
The full error is:
The referencing target:
The
com_github_rivo_uniseg
directory, that contains aWORKSPACE
but noBUILD
files:What did you expect to see?
I expected everything generated by Gazelle to work out-of-the-box, without having to create my own BUILD files.
What did you see instead?
The above error lol
The text was updated successfully, but these errors were encountered: