In our projects, we use stack-all to maintain our set of LTS configurations:
% ls -1 stack-lts*
stack-lts18.yaml
stack-lts19.yaml
stack-lts20.yaml
stack-lts21.yaml
stack-lts23.yaml
stack-lts24.yaml
And then, so that a bare stack still "just works", we symlink stack.yaml to whatever is latest:
% ls -l stack.yaml
lrwxrwxrwx 1 patrick patrick 16 Apr 21 10:05 stack.yaml -> stack-lts24.yaml
This works really well for us, we only maintain the concrete -ltsX files, but tooling that expects a stack.yaml also continues to work without issue. But when I upgrade stack-all , I now get an error:
% stack-all build --dry-run
...
stack-all-0.7.1: overlapping major versions: stack.yaml stack-lts24.yaml
What are your thoughts on accounting for this scenario?
I'd rather not use --keep-going to keep going on any error, but I'd like to skip passed this one. Or maybe stack-all should ignore symlinks?
I'm happy to PR a solution, but I'm not sure which direction you'd prefer (if any).
In our projects, we use
stack-allto maintain our set of LTS configurations:And then, so that a bare
stackstill "just works", we symlinkstack.yamlto whatever is latest:This works really well for us, we only maintain the concrete
-ltsXfiles, but tooling that expects astack.yamlalso continues to work without issue. But when I upgradestack-all, I now get an error:What are your thoughts on accounting for this scenario?
I'd rather not use
--keep-goingto keep going on any error, but I'd like to skip passed this one. Or maybestack-allshould ignore symlinks?I'm happy to PR a solution, but I'm not sure which direction you'd prefer (if any).