tarballs: append to cargo config

This allows putting other configuration into the config file without it
being deleted for tarballs.

https://github.com/fish-shell/fish-shell/pull/12292#discussion_r2678697643
This commit is contained in:
Daniel Rainer
2026-01-12 19:25:40 +01:00
parent 334710ebf7
commit 860f75ee97
2 changed files with 2 additions and 5 deletions

View File

@@ -1,4 +1 @@
# This file is _not_ included in the tarballs for now
# Binary builds on Linux packaging infrastructure need to overwrite it to make `cargo vendor` work
# Releases and development builds made using OBS/Launchpad will _not_ reflect the contents of this
# file

View File

@@ -43,7 +43,7 @@ PREFIX_TMPDIR=$(mktemp -d)
cd "$PREFIX_TMPDIR"
mkdir .cargo
cargo vendor --manifest-path "$wd/Cargo.toml" > .cargo/config.toml
cargo vendor --manifest-path "$wd/Cargo.toml" >> .cargo/config.toml
tar cfvJ "$path".xz vendor .cargo