We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug Accidentally, I've discovered that stack_snapshot packages list may contain "quasi-duplicates".
To Reproduce Put two packages to stack_snapshot::packages where one is taken from stack snapshot and the other one contains a strict version, e.g:
stack_snapshot::packages
stack_snapshot( packages = [ ... "wai-make-assets", "wai-make-assets-0.2", ... ] )
Expected behavior While, in duplicated such case, using reference without the version is allowed for targets of type e.g. haskell_library:
haskell_library
haskell_library( deps = [ "@stackage//:wai-make-asstets", ], )
rules_haskell should probably generate an error. For a reader it may be a bit misleading what's happening in such case. Does the dependency come from stackage or hackage (https://rules-haskell.readthedocs.io/en/latest/haskell-use-cases.html#version-overrides-or-hackage-dependencies)?
Environment
Additional context tweag/gazelle_cabal#46
The text was updated successfully, but these errors were encountered:
Merge pull request #1815 from tweag/gg/#1813
63f7a3c
Add an error if a package is declared twice in stack_snapshot
Closed in #1815
Sorry, something went wrong.
No branches or pull requests
Describe the bug
Accidentally, I've discovered that stack_snapshot packages list may contain "quasi-duplicates".
To Reproduce
Put two packages to
stack_snapshot::packages
where one is taken from stack snapshot and the other one contains a strict version, e.g:Expected behavior
While, in duplicated such case, using reference without the version is allowed for targets of type e.g.
haskell_library
:rules_haskell should probably generate an error. For a reader it may be a bit misleading what's happening in such case. Does the dependency come from stackage or hackage (https://rules-haskell.readthedocs.io/en/latest/haskell-use-cases.html#version-overrides-or-hackage-dependencies)?
Environment
Additional context
tweag/gazelle_cabal#46
The text was updated successfully, but these errors were encountered: