Closed chreekat closed 7 years ago
Any suggestion how I should enumerate the packages? Is there a flag to stack query
? Or do I have to resort to parsing stack.yaml
myself?
The format of stack.yaml
wrt extra deps is about to change according to https://fpcomplete-site-extensible-snapshots.review.gitlab.fpcomplete.com/blog/2017/07/stacks-new-extensible-snapshots. I agree that this is a stack query
bug =)
I didn't see any issues about it so I opened commercialhaskell/stack#3258
@chreekat As a workaround, you can just ignore the extra deps foo
and bar
like this:
# .weeder.yaml
- package:
- name: foo
- package:
- name: bar
Thanks @mitchellwrosen !
@ndmitchell I opened this merely to bring the 'stack query' bug to your attention. I think I'll close it with the assumption that it won't bite too many other weeder users.
Thanks for tracking this down, reporting, and raising upstream bugs. Until it's fixed, I've added a note at the bottom of the readme.
Happy timing - I have a suspicion that the upcoming stack changes will probably fix this (and a bunch of other, unrelated problems I was having with specifying git repos as extra-deps).
Huh, my workaround actually doesn't seem to work, but the HEAD
version of stack is more accurate about which packages are locals.
Nevermind, it does work, I accidentally used .weeder.yml
in my script instead of .weeder.yaml
@mitchellwrosen An understandable mistake... Should weeder look for both?
I wouldn't complain if it did :)
Don't think stack or travis check for both, though
Given that stack and travis don't, I won't either. I did make --verbose
say what is being used though, which hopefully gives a way to debug such failures.
Technically you might call this a bug in 'stack query', which lists packages as 'local' when it probably shouldn't. But 'stack query' is marked as experimental. ;)