Repository navigation
Makefile: Don't use cargo xtask - #364
Conversation
In bootc-dev#346 the manpage generation was changed to mirror bootc, however it missed the important part that bootc does not directly run `cargo xtask` but instead runs `cargo run --release --package xtask -- ...`, which is an important distinction because the former requires the `cargo-xtask` binary to be present in $PATH somewhere. In the RPM buildroot we don't have `cargo-xtask` so this fails to generate manpages via packit (and would eventually FTBFS in Fedora, too). Closes: bootc-dev#355 Signed-off-by: John Eckersberg <dev@eckersberg.com>
|
well this partially fixes it, re: #355 (comment) still more to do |
|
This is fine, but what was missed was copying https://github.com/bootc-dev/bootc/blob/main/.cargo/config.toml which I think is a better fix |
This mirrors how bootc works, this is important because we might not have git installed (for example, in the buildroot during RPM build). Signed-off-by: John Eckersberg <dev@eckersberg.com>
Yes, although that alias kinda obfuscates what is going on (hence my confusion) |
I agree it's subtle if one doesn't know about it, but it is documented in the first google search result (for me) for "cargo xtask" ➡️ https://github.com/matklad/cargo-xtask So I think the right fix is to add that alias - and actually we should have a CI check that verifies that it works, I think that was the other real gap. |
Ah ok, I didn't realize that it's always just been an alias, instead assuming there was come |
|
Actually I went to add the alias but it's already there so something else is going on. |
|
OK hum my offhand guess is this may be something with the Fedora RPM rust macros overwriting |
Yeah seems this is intentional: |
In #346 the manpage generation
was changed to mirror bootc, however it missed the important part that
bootc does not directly run
cargo xtaskbut instead runscargo run --release --package xtask -- ..., which is an important distinctionbecause the former requires the
cargo-xtaskbinary to be present in$PATH somewhere. In the RPM buildroot we don't have
cargo-xtasksothis fails to generate manpages via packit (and would eventually FTBFS
in Fedora, too).
Closes: #355
Signed-off-by: John Eckersberg dev@eckersberg.com