-
Notifications
You must be signed in to change notification settings - Fork 131
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
Add an explicit purs args flag #366
Conversation
Quick question -- does this work with a string containing an arbitrary number of arguments to pass to spago build --purs-args '--verbose-errors -o outputDirectory' |
Thinking more about this maybe it'd be better if we:
This is because adding this flag wouldn't make it any easier for us to control what's being passed to purs, while controlling it would help us greatly in fixing #216 and #355 (because duplicate flags make So I'd propose that instead of adding the
However, if we do the change I propose above then we'd totally cut away the Also this last item on the list made me realize that all of this is potentially a big breaking change for editor tooling, because instead of So in the end I think we should not change anything at all here, as there are more things relying on all of this than what we initially thought |
Editor tooling - from my POV that's just a config change, so it's a change anyone using that setup would have to make. Personal opinion, wouldn't use that as a deciding factor. Would say that if you "close the hatch" it's kind of committing to supporting all compiler flags, though I guess that's not too bad if you have a higher release cadence |
tl;dr - I think disabling passthrough is too restrictive, whereas passing all non-parsed Long - Adding those flags to (sorry for this reply being all over the place) |
I hate the I'd rather support both modes of operation between |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright, then I'd say we can go for adding this flag and removing the passthrough (as this PR implements) 💯
And we should definitely support some common properties, like --output
, though in that case we'll really need actual parsing of the content of purs-args
because the compiler doesn't like duplicate flags (so we wouldn't be able to pass --output
from spago and from the additional args, this is exactly the problem in #216). Anyways we don't have to worry about all of this in here.
So I'll merge this, thanks @googleson78!
@googleson78 no it's not, see #378 |
Description of the change
Add an explicit flag for arguments passed over to
purs
as per #353. Fixes #353I am not sure about the short flag name, but everything that immediately comes to mind is already taken.
Checklist:
README