Skip to content

Commit

Permalink
chore: fix tests & clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-olszewski committed Jun 6, 2024
1 parent cb033cf commit 880b670
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
9 changes: 2 additions & 7 deletions crates/turborepo-lib/src/shim.rs
Original file line number Diff line number Diff line change
Expand Up @@ -606,13 +606,8 @@ fn run_correct_turbo(
shim_args.invocation_dir.as_path(),
);
debug!("Running command as global turbo");
let should_warn_on_global =
env::var(TURBO_GLOBAL_WARNING_DISABLED).map_or(true, |disable| {
match disable.as_str() {
"1" | "true" => false,
_ => true,
}
});
let should_warn_on_global = env::var(TURBO_GLOBAL_WARNING_DISABLED)
.map_or(true, |disable| !matches!(disable.as_str(), "1" | "true"));
if should_warn_on_global {
eprintln!("No locally installed `turbo` found. Using version: {version}.");
}
Expand Down
1 change: 1 addition & 0 deletions turborepo-tests/helpers/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ fi

# disable the first-run telemetry message
export TURBO_TELEMETRY_MESSAGE_DISABLED=1
export TURBO=${MONOREPO_ROOT_DIR}/target/debug/turbo${EXT}
TURBO=${MONOREPO_ROOT_DIR}/target/debug/turbo${EXT}
1 change: 1 addition & 0 deletions turborepo-tests/integration/tests/prune/resolutions.t
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Setup
$ . ${TESTDIR}/../../../helpers/setup.sh
$ . ${TESTDIR}/../../../helpers/copy_fixture.sh $(pwd) berry_resolutions ${TESTDIR}/../../fixtures
$ export TURBO_GLOBAL_WARNING_DISABLED=1

Prune a
We expect to no longer have the non-resolved is-odd descriptor and
Expand Down
1 change: 1 addition & 0 deletions turborepo-tests/integration/tests/prune/yarn-pnp.t
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Setup
$ . ${TESTDIR}/../../../helpers/setup.sh
$ . ${TESTDIR}/../../../helpers/copy_fixture.sh $(pwd) berry_resolutions ${TESTDIR}/../../fixtures
$ export TURBO_GLOBAL_WARNING_DISABLED=1
Remove linker override
$ rm .yarnrc.yml
Prune the project
Expand Down

0 comments on commit 880b670

Please sign in to comment.