Repository navigation
Open
Description
Conclusion from this: there needs to be a CI check that runs buck2 completion zsh in debug mode, apparently.
Steps to reproduce:
$ cargo run --bin buck2 -- completion zsh
Compiling buck2_bxl v0.1.0 (/Users/jade/co/buck2/app/buck2_bxl)
Compiling buck2 v0.1.0 (/Users/jade/co/buck2/app/buck2)
Finished `dev` profile [optimized + debuginfo] target(s) in 7.17s
Running `target/debug/buck2 completion zsh`
#compdef buck2 buck
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under both the MIT license found in the
# LICENSE-MIT file in the root directory of this source tree and the Apache
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
# of this source tree.
# @generated by `target/debug/buck2 completion zsh`
# clap_complete generated content BEGINS
thread 'buck2-main' panicked at /Users/jade/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap_builder-4.5.37/src/builder/debug_asserts.rs:86:13:
Command chrome-trace: Argument names must be unique, but 'path' is in use by more than one argument or group
stack backtrace:
0: __rustc::rust_begin_unwind
at /rustc/920d95eaf23d7eb6b415d09868e4f793024fa604/library/std/src/panicking.rs:697:5
1: core::panicking::panic_fmt
at /rustc/920d95eaf23d7eb6b415d09868e4f793024fa604/library/core/src/panicking.rs:75:14
2: clap_builder::builder::debug_asserts::assert_app
at /Users/jade/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap_builder-4.5.37/src/builder/debug_asserts.rs:86:13
3: clap_builder::builder::command::Command::_build_self
at /Users/jade/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap_builder-4.5.37/src/builder/command.rs:4404:13
4: clap_builder::builder::command::Command::_build_recursive
at /Users/jade/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap_builder-4.5.37/src/builder/command.rs:4307:9
5: clap_builder::builder::command::Command::_build_recursive
at /Users/jade/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap_builder-4.5.37/src/builder/command.rs:4309:13
6: clap_builder::builder::command::Command::_build_recursive
at /Users/jade/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap_builder-4.5.37/src/builder/command.rs:4309:13
7: clap_builder::builder::command::Command::build
at /Users/jade/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap_builder-4.5.37/src/builder/command.rs:4302:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
zsh: abort cargo run --bin buck2 -- completion zsh
This is 6bb2193
Activity
Use unique clap argument IDs
Use unique clap argument IDs
Use unique clap argument IDs
Use unique clap argument IDs
Use unique clap argument IDs