-
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
setup-info field in stack.yaml not consulted #2983
Comments
Hmm, indeed it seems that I wonder how impactful it would be to change this semantics such that the default url doesn't get used when |
In the case of a inline setup-info, it probably should extend the default configs, since that's commonly used to add one custom GHC bindist (e.g. if you want to test the latest GHC release candidate). For the cases where it references an external YAML URL, you're right that the more common use case would probably be to totally override the default URL. Potentially bit confusing to have the same field behave a bit differently in these two cases though. |
Still confusing. |
I think that field expects the setup info to be inline, not point to a separate file/URL. The fact that's it's silently ignoring an entry is a bug though, and being able to point it to a separate file/URL would be a helpful feature. |
So to resolve this issue,
Is that correct? |
Yes, I'd say (1) is required and (2) would be a nice feature but needs a bit of thought. Inline |
@borsboom can I suggest that https://docs.haskellstack.org/en/stable/yaml_configuration/#setup-info be updated to explicitly say that you cannot use the field in ~/.stack/config.yaml / stack.yaml to override with your own setup-info.yaml file and that you have to use the command-line option? [alternately, if there was a way to defeat the default value before appending the supplied values, that would be good too] We just killed a lot of time trying to figure out why
wasn't working. I understand now, but it is very confusing. Fortunately specifying on the command-line does work. AfC |
Alright, I clarified the docs in #4589. I agree it would be nice to support replacing it from the config file too. |
Using stack 1.3.2 on Windows 64bit, I have a
stack.yaml
file containingsetup-info: http://example.com/none.yaml
. I have disabled access toraw.githubusercontent.com
. If I run eitherstack setup
orstack build
then I get an error about not being able to reachraw.githubusercontent.com
, rather than a 404 failing to downloadexample.com/none.yaml
. If I use the flag--setup-info-yaml
withexample.com
then it fails witha 404 as expected. The documentation suggests these two settings are equivalent, but they don't seem to be.The text was updated successfully, but these errors were encountered: