-
Notifications
You must be signed in to change notification settings - Fork 842
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
Local extra-dep should not be considered $locals #3574
Comments
"extra-dep" essentially just means "not a target by default". Currently, they are always considered local packages. Once implicit snapshots is implemented, this wouldn't be the case and the local package vs snapshot package will make even less sense. So I anticipate that the local package distinction will get dropped. I think Not sure what to call the non-extra-deps. |
Hmm, FWIW |
First things first: the correct syntax is to say
Changing to
And then I think this is just a bug in implementation: I would not consider any extra-dep packages to be locals, and think it's just a bug in the code base. My understanding and reading of the docs have always gone in that direction. @mgsloan are you inherently opposed to just fixing the implementation such that |
@snoyberg I am not opposed to that. I think part of the root of this is that IIRC, the
In fact, I think it would be good to take this as an opportunity to consolidate / define stack's terminology around different sorts of packages. Currently we have: the following terms
Would also be good to include along with the docs for this terminology, also the terminology for DBs, even though that's an implementation detail. It would be good to explain global DB vs snapshot DB vs local DB. |
I think we're mostly on the same page, see #3352. For now, I'm going to make changes necessary so this specific case passes. |
PR #3601 is now open |
Don't apply $locals to extra-deps #3574
This was already addressed by #3601, closing. |
Using
stack
installed with--git
on Windows 10 64bit, version:Given stack-bug.zip, that defines in the
stack.yaml
:When compiling
foo
I don't expect the flag-bob
to be applied asfoo
is an extra-dep, and thus not a local package. However, when Istack build
I get an error about:The text was updated successfully, but these errors were encountered: