Skip to content
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

Import stackage as dev-dependency #1968

Merged
merged 5 commits into from
Sep 28, 2023
Merged

Import stackage as dev-dependency #1968

merged 5 commits into from
Sep 28, 2023

Conversation

aherrmann
Copy link
Member

@aherrmann aherrmann commented Sep 26, 2023

Mark the stack_snapshot imports within rules_haskell itself as dev_dependencies.
Otherwise downstream users of rules_haskell will have the same packages imported into their Stackage snapshot as used by rules_haskell for testing purposes. This can cause problems if downstream users want to use a different Stackage snapshot that may not include one of the dependencies imported by rules_haskell.

Note, due to a reference to @stackage from within the stack_snapshot implementation we still need to import the repository @stackage in all cases. This is done by using separate references to the extension, one marked as dev-dependency and the other not. However, they both refer to the same underlying instance of the module extension.

Otherwise these package imports impact downstream users, which may face
issues due to packages missing in their selected Stackage snapshot.
aherrmann added a commit to tweag/gazelle_cabal that referenced this pull request Sep 27, 2023
So that rules_haskell no longer impacts downstream Stackage snapshot
imports.
tweag/rules_haskell#1968
@aherrmann aherrmann marked this pull request as ready for review September 27, 2023 14:40
@aherrmann aherrmann requested a review from avdv as a code owner September 27, 2023 14:40
Copy link
Member

@avdv avdv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@aherrmann aherrmann added the merge-queue merge on green CI label Sep 28, 2023
@mergify mergify bot merged commit baeb1a0 into master Sep 28, 2023
@mergify mergify bot deleted the dev-deps branch September 28, 2023 08:37
@mergify mergify bot removed the merge-queue merge on green CI label Sep 28, 2023
aherrmann added a commit to tweag/gazelle_cabal that referenced this pull request Oct 2, 2023
So that rules_haskell no longer impacts downstream Stackage snapshot
imports.
tweag/rules_haskell#1968
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.

2 participants