aspect-build / aspect-cli

correct, fast, usable: choose three
https://aspect.build/cli
Apache License 2.0
93 stars 21 forks source link

[Bug]: "mod dump_repo_mapping" is inconsistent with the same command from bazel cli #754

Open slamdev opened 1 month ago

slamdev commented 1 month ago

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