Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tasks should accept rerunIfModified only run if a file was modified since task execution #1682

Open
farnoy opened this issue Jan 23, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@farnoy
Copy link

farnoy commented Jan 23, 2025

There's a common pattern with language-specific package managers only needing to re-run if I changed something like Cargo.toml, or if I checked out another revision and my Cargo.lock was updated. It's already possible to implement this with the status command, but I feel like this should come built-in with devenv.

tasks.cargo = {
  exec = "cargo fetch";
  rerunIfModified = [ "Cargo.toml" "Cargo.lock" ];
};
@farnoy farnoy added the enhancement New feature or request label Jan 23, 2025
@sandydoo
Copy link
Member

Related: #1616

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants