mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-19 12:08:43 +00:00
feat: Use CARGO_BUILD_TARGET
as fallback for --target
(#2075)
* feat: Use `CARGO_BUILD_TARGET` as fallback for `--target` Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Fix e2e-tests: Unset CARGO_BUILD_TARGET before running e2e-tests Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> --------- Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
451450603f
commit
268efdf6e6
2 changed files with 3 additions and 2 deletions
|
@ -88,7 +88,8 @@ pub struct Args {
|
||||||
help_heading = "Package selection",
|
help_heading = "Package selection",
|
||||||
alias = "target",
|
alias = "target",
|
||||||
long,
|
long,
|
||||||
value_name = "TRIPLE"
|
value_name = "TRIPLE",
|
||||||
|
env = "CARGO_BUILD_TARGET"
|
||||||
)]
|
)]
|
||||||
pub(crate) targets: Option<Vec<String>>,
|
pub(crate) targets: Option<Vec<String>>,
|
||||||
|
|
||||||
|
|
2
justfile
2
justfile
|
@ -207,7 +207,7 @@ get-binary outdir=".": (get-output output-filename outdir)
|
||||||
-chmod +x {{ outdir / output-filename }}
|
-chmod +x {{ outdir / output-filename }}
|
||||||
|
|
||||||
e2e-test file *arguments: (get-binary "e2e-tests")
|
e2e-test file *arguments: (get-binary "e2e-tests")
|
||||||
cd e2e-tests && env -u RUSTFLAGS bash {{file}}.sh {{output-filename}} {{arguments}}
|
cd e2e-tests && env -u RUSTFLAGS -u CARGO_BUILD_TARGET bash {{file}}.sh {{output-filename}} {{arguments}}
|
||||||
|
|
||||||
e2e-test-live: (e2e-test "live")
|
e2e-test-live: (e2e-test "live")
|
||||||
e2e-test-subcrate: (e2e-test "subcrate")
|
e2e-test-subcrate: (e2e-test "subcrate")
|
||||||
|
|
Loading…
Add table
Reference in a new issue