Skip to content

Sandbox repo overriding #1884 - #2221

Closed
snoyberg wants to merge 2 commits into
haskell:masterfrom
snoyberg-archive:1884-sandbox-repo-override
Closed

snoyberg wants to merge 2 commits into
haskell:masterfrom
snoyberg-archive:1884-sandbox-repo-override

Conversation

@snoyberg

Copy link
Copy Markdown
Collaborator

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

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).
@mrak

mrak commented Nov 14, 2014

Copy link
Copy Markdown

Thanks Michael. This should ease the use of Stackage in sandboxes without hsenv use

@23Skidoo

Copy link
Copy Markdown
Member

See #2226 for an alternative approach.

@snoyberg

Copy link
Copy Markdown
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.)

@23Skidoo

Copy link
Copy Markdown
Member

I think that my patch should be relatively easy to backport. I want @dcoutts to take a look before merging it.

@23Skidoo

Copy link
Copy Markdown
Member

Closing in favour of #2226.

@23Skidoo 23Skidoo closed this Nov 17, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants