Skip to content

Commit

Permalink
chore(lockfile): remove default turbo_version impl
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-olszewski committed Jun 10, 2024
1 parent 3f07b70 commit 3bcbb01
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 4 additions & 0 deletions crates/turborepo-lockfiles/src/bun/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ impl Lockfile for BunLockfile {
// if the types don't match then we changed package managers
any_other.downcast_ref::<Self>().is_none()
}

fn turbo_version(&self) -> Option<String> {
None
}
}

impl Entry {
Expand Down
4 changes: 1 addition & 3 deletions crates/turborepo-lockfiles/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,7 @@ pub trait Lockfile: Send + Sync + Any + std::fmt::Debug {
fn global_change(&self, other: &dyn Lockfile) -> bool;

/// Return any turbo version found in the lockfile
fn turbo_version(&self) -> Option<String> {
None
}
fn turbo_version(&self) -> Option<String>;
}

/// Takes a lockfile, and a map of workspace directory paths -> (package name,
Expand Down

0 comments on commit 3bcbb01

Please sign in to comment.