-
-
Notifications
You must be signed in to change notification settings - Fork 147
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
Allow commands to output whole directories #493
Comments
As a long time user of both tup and npm, my reaction is, that way madness lies. So I tried it. Setting
Without the
With it, I get a bunch of stuff like this:
I've had similar problems using tup with Powershell, which always wants to write to an off-tree profile directory. Perhaps npm has a "no cache" option you can use to get around this? It's not clear. But anyway, it's not as if npm itself is deterministic under any circumstances, with or without a lockfile. So for better or worse, tup is not really suited for the provisioning of dependencies whose files are not known a priori. |
Following up... You can get past the log problems by adding
You can get past that by adding
At this point I guess you do an So yeah, I don't think it's a healthy road to go down. I can say from having tried similar things. |
Hm! That "ignore output" trick is a pretty handy one; didn't realize one can do that. Naturally, if the feature this issue suggests is somehow implemented, commands depending on As concerns determinism, note that you can already call commands like As for the The main usecase for npm and npm-likes would be to have the buildsystem manage project dependencies. There are better ways to do that, however, so... I'm hoping someone might suggest a more compelling usecase for generated directories. |
I have static documentation sites generated from my code or from markdown sources, and don't want to try to enumerate and adjust for any changes in the output files (~50 generally). EDIT: Related (?): |
It would be really neat if we could specify:
And for Tup to then automatically rerun
npm
any time thepackage.json
file changes.I would imagine that any non-generated files present in
node_modules/
in that case would trigger an error, as it would have to be a generated folder. Also, other rules writing tonode_modules/
or a subdirectory thereof would likely also have to trigger an error.Just sharing as a random idea.
npm
is not a particularly useful usecase; perhaps there is some way thattar
could be a useful folder-generating command, but.. hm, maybe someone else will come with a better usecase in mind? 😅The text was updated successfully, but these errors were encountered: