-
-
Notifications
You must be signed in to change notification settings - Fork 644
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 --no-watch-filesystem with --pantsd #21451
base: main
Are you sure you want to change the base?
Conversation
I think it could be worth-while to discover why this restriction was added in the first place, to see if that no longer applies, or if different trade-offs should be made now. |
My theory (unverified) would be that using This seems subtle enough that it seems worth protecting us users from our own mistakes/lack-of-knowledge. I reckon I'd make this mistake, even being a Pants Maintainer: I don't remember all the interactions between flags/behaviours at all times, and I really don't want to have to. So, if we're allowing this (and the motivation seems reasonable), I think we should make it a more explicit/intentional opt-in, e.g.:
Thank you for taking the time to contribute, @x0f0! |
@huonw , yes it's a footgun if used in a transient environment. However, I'm specifically working in a clean slate CI environment where I don't control the max user watches. |
Yeah, I understand the motivation and it makes sense, I think. The connection to the footgun concern is that loosening the restriction in the simplest way (as written) allows usage in CI environments (yay!), but it allows usage locally too (not good!). There's no hint in the flag name (or the current docs, but docs should be a last resort) of the risks involved. Someone coming in with a different problem/context could easily accidentally start using this flag inappropriately. |
Addresses #21448
Allows not watching the fs while keeping pants around.
This is useful when running multiple commands in a read-only environment like CI where there are resource constraints that limit file watching.