Skip to content

Commit

Permalink
allow to disable versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Oct 10, 2024
1 parent 16cb503 commit 3dab6c6
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,15 @@ impl LmdbBackingStorage {
None
}
} else {
GIT_COMMIT_HASH_SHORT
if env::var("TURBO_TASKS_DISABLE_VERSION").ok().is_some() {
println!(
"WARNING: Persistent Caching versioning is disable. Manual removal of the \
persistent caching database might be required."
);
Some("version-ignored")
} else {
GIT_COMMIT_HASH_SHORT
}
};
let path;
if let Some(version) = version {
Expand Down

0 comments on commit 3dab6c6

Please sign in to comment.