Skip to content

Commit be1af9a

Browse files
chore: add local and global versions in debug (vercel#3661)
Adds some additional debug logs in the shim about the global/local versions: ``` olszewski@chriss-mbp sushiswap % turbo_dev -vv --version 2023-02-06T13:38:47.876-0800 [DEBUG] turborepo_lib::shim: Global turbo version: 1.7.3 2023-02-06T13:38:47.880-0800 [DEBUG] turborepo_lib::shim: Local turbo version: 1.7.2 2023-02-06T13:38:47.880-0800 [DEBUG] turborepo_lib::shim: Running local turbo binary in /private/tmp/sushiswap/node_modules/.bin/turbo 2023-02-06T13:38:47.880-0800 [DEBUG] turborepo_lib::shim: supports_skip_infer_and_single_package true 1.7.2 ``` a future PR will add this to the github issues template once this gets released
1 parent ca72f9e commit be1af9a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crates/turborepo-lib/src/shim.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ impl LocalTurboState {
211211
let package_json: PackageJson =
212212
serde_json::from_reader(File::open(local_turbo_package_path).ok()?).ok()?;
213213

214+
debug!("Local turbo version: {}", package_json.version);
214215
Some(Self {
215216
bin_path: local_turbo_path,
216217
version: package_json.version,
@@ -510,6 +511,7 @@ pub fn run() -> Result<Payload> {
510511
let args = ShimArgs::parse()?;
511512

512513
init_env_logger(args.verbosity);
514+
debug!("Global turbo version: {}", get_version());
513515

514516
// If skip_infer is passed, we're probably running local turbo with
515517
// global turbo having handled the inference. We can run without any

0 commit comments

Comments
 (0)