-
Notifications
You must be signed in to change notification settings - Fork 22
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
[Bug]: aspect configure
behaves inconsistently
#774
Comments
Thanks for such a detailed bug report, and for bisecting! I'm not sure why local vs CI would be different. All I can think of is one (local vs CI) has a) the A few questions:
Does adding these directives change anything?
It's possible only the |
Yeah, running Running ➜ ASPECT_CLI_LOG_DEBUG=trace bazel configure
2024/11/09 18:59:17 Found bazel_gazelle_go_repository_config(s): /private/var/tmp/_bazel_walkerburgin/492fc5f288b88071131e05c5241cd082/external/gazelle~~go_deps~bazel_gazelle_go_repository_config/WORKSPACE
Updating BUILD files for go
37 BUILD files visited
0 BUILD files updated
➜ bazel clean --expunge
INFO: Starting clean (this may take a while). Consider using --async if the clean takes more than several minutes.
➜ ASPECT_CLI_LOG_DEBUG=trace bazel configure
2024/11/09 19:02:12 No bazel_gazelle_go_repository_config found in output_base: /private/var/tmp/_bazel_walkerburgin/492fc5f288b88071131e05c5241cd082
Updating BUILD files for go
37 BUILD files visited
9 BUILD files updated Adding the directives explicitly got the CI build and the local build to agree 👍 |
The way the rules_go gazelle plugin works under bzlmod requires essentially a bazel query to find the magic But that is the first time any gazelle logic has had to know the location of a repo like that which is why the fix in the aspect-cli was required. I hope to try to improve that more in the future.
Unfortunately I don't understand why 😢
Are you unblocked then? I think this is still an issue but unless people are blocked I assume I won't have time to prioritize it... |
Yep, I'm unblocked! Thanks for the help. |
What happened?
Bumping
aspect-cli
to2024.45.21
and runningbazel configure
locally resulted in diffs that looked like this:Running
bazel configure
on that commit on GitHub actions (ubuntu-latest
) fails and produces the inverse diff, and I haven't been able to figure out why.I bisected the source of the original diff to ad74a54.
Version
Development (host) and target OS/architectures:
Output of
bazel --version
:Version of the Aspect rules, or other relevant rules from your
WORKSPACE
orMODULE.bazel
file:Language(s) and/or frameworks involved:
go
How to reproduce
Any other information?
No response
The text was updated successfully, but these errors were encountered: