Skip to content
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]: "mod dump_repo_mapping" is inconsistent with the same command from bazel cli #754

Open
slamdev opened this issue Oct 5, 2024 · 0 comments
Labels
bug Something isn't working untriaged Requires traige

Comments

@slamdev
Copy link

slamdev commented Oct 5, 2024

What happened?

when aspect cli is used as a replacement of bazel cli, IntelliJ cannot sync a project. IntelliJ runs this command and fails:

./aspect-darwin_arm64 mod --tool_tag=ijwb:IDEA:ultimate "--override_repository=intellij_aspect=/Users/slam/Library/Application Support/JetBrains/IntelliJIdea2024.2/plugins/ijwb/aspect" --curses=no --color=yes --progress_in_terminal_title=no --noenable_workspace dump_repo_mapping "" --
ERROR: No repository name(s) specified. Type 'bazel help mod' for syntax and help.

switching back to the bazel cli produces this output and no errors:

bazel mod --tool_tag=ijwb:IDEA:ultimate "--override_repository=intellij_aspect=/Users/slam/Library/Application Support/JetBrains/IntelliJIdea2024.2/plugins/ijwb/aspect" --curses=no --color=yes --progress_in_terminal_title=no --noenable_workspace dump_repo_mapping "" --
 checking cached actions
{"":"","bazel_skylib":"bazel_skylib~","buildifier_prebuilt":"buildifier_prebuilt~","local_config_platform":"local_config_platform","bazel_tools":"bazel_tools","aspect_rules_lint":"aspect_rules_lint~","aspect_bazel_lib":"aspect_bazel_lib~","bazel-monorepo":""}

Version

./aspect-darwin_arm64 version
Aspect CLI version: 2024.40.2-a7ed65a (with local changes)
Build label: 7.3.2
Build target: @@//src/main/java/com/google/devtools/build/lib/bazel:BazelServer
Build time: Tue Oct 1 17:48:21 2024 (1727804901)
Build timestamp: 1727804901
Build timestamp as int: 1727804901
bazel version
Bazelisk version: 1.22.0
Build label: 7.3.2
Build target: @@//src/main/java/com/google/devtools/build/lib/bazel:BazelServer
Build time: Tue Oct 1 17:48:21 2024 (1727804901)
Build timestamp: 1727804901
Build timestamp as int: 1727804901

How to reproduce

In IntelliJ bazel settings set Bazel binary location to aspect cli.

Any other information?

No response

@slamdev slamdev added the bug Something isn't working label Oct 5, 2024
@github-actions github-actions bot added the untriaged Requires traige label Oct 5, 2024
@slamdev slamdev changed the title [Bug]: "mod dump_repo_mapping" inconsistent with the same command from bazel cli [Bug]: "mod dump_repo_mapping" is inconsistent with the same command from bazel cli Oct 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working untriaged Requires traige
Projects
None yet
Development

No branches or pull requests

1 participant