Repository navigation
Conversation
This follows @23Skidoo's option (3) at: haskell#1884 (comment) If a config file has a repo name that begins with `!`, it's treated as *overriding*, meaning that any previous repos are ignored. This allows a sandbox to either add additional repos (by omitting the `!`), or ignore the main config's repos and use a separate repo (which is currently the use case I'm trying to design for).
|
Thanks Michael. This should ease the use of Stackage in sandboxes without |
Member
|
See #2226 for an alternative approach. |
Collaborator
Author
|
I'm fine with this new approach as well (in fact, I overall prefer it). What will it take to get this merged and backported? (I don't mind sending PRs myself for the backporting to 1.18 and 1.20.) |
Member
|
I think that my patch should be relatively easy to backport. I want @dcoutts to take a look before merging it. |
Member
|
Closing in favour of #2226. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This addresses the concern raised in #1884. Please review. I've elected to make the overriding behavior specific to remote repos for now, though it could easily be extended to any other field.
I've also backported this patch to 1.18 and 1.20, and after this PR is reviewed/merged, I will open pull requests for each of those branches. Those diffs can be viewed at:
https://github.com/snoyberg/cabal/compare/1.18?expand=1
https://github.com/snoyberg/cabal/compare/1.20?expand=1