-
Notifications
You must be signed in to change notification settings - Fork 843
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
Should show error if setting --flag
for package in the snapshot database
#611
Comments
@radix: Is this resolved with the new |
(nevermind, I should have read the original issue first -- clearly |
From #594:
So the issue isn't that the |
Yeah, I think this may be a significant design decision. I guess changing flags for snapshot packages can potentially "corrupt" a build database, since it would give you a way to change a package that's different but still installed to the same global package database, causing other software to not be able to build? Is my understanding right? I think at the least, passing a |
You're correct about that. If we allow flags to be changed on a snapshot package, it should at the minimum implicitly move it to extra-deps so that the package and all that things that depend on it are in the local database. But I'd prefer to just give an error message, and if this is the behavior that a user actually wants, the user can explicitly add the package to extra-deps. Does that sound reasonable? |
Yes, your proposal sounds good to me. |
stack install --flag
doesn't work--flag
for package in the snapshot database
I've adjusted the title of this issue to reflect the discussed proposal. Also very much related to #617 (Make |
Is there any difference between this and #617? |
I think they're slightly different, or at least should print a different warning or error message to avoid confusion. But I think the two could be merged. |
Ok, let's close this in favour of #617. |
As mentioned on #594, we can't do
stack install --flag hakyll:-previewServer --flag hakyll:-watchServer hakyll
, which is something that would allow me to install hakyll without the optional dependencies that it has onfsnotify
. The --flag parameter seems to just be ignored withinstall
.The text was updated successfully, but these errors were encountered: