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

run task directly in hook #3314

Open
jdx opened this issue Dec 1, 2024 · 5 comments
Open

run task directly in hook #3314

jdx opened this issue Dec 1, 2024 · 5 comments

Comments

@jdx
Copy link
Owner

jdx commented Dec 1, 2024

basically:

[hooks]
postinstall = {task = "build"}

this would make things a bit faster since mise wouldn't need to run a second time with mise -q build

@dudicoco
Copy link

dudicoco commented Dec 5, 2024

@jdx would this inherit depends and sources for watch_files hooks so they will run when files changed and according to the deps order?

@jdx
Copy link
Owner Author

jdx commented Dec 5, 2024

I'm probably going to remove [[watch_files]]. I think it overlaps too much with other things.

@dudicoco
Copy link

dudicoco commented Dec 5, 2024

Does that mean we won't have a feature similar to direnv's watch_file?

@jdx
Copy link
Owner Author

jdx commented Dec 5, 2024

I'm not sure but I think it's confusing to have task sources/outputs, mise watch and [[watch_files]] as all separate concepts

@dudicoco
Copy link

dudicoco commented Dec 5, 2024

I think that's a major selling point for direnv.
Without it you have no way of verifying that everyone's dev environment is compatible with the commit that they are working on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants