You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Using a local snapshot to point to an archive URL or specific Github commit/fork will silently ignore the override and still use the Hackage version of the underlying resolver if the new archive does not include a Cabal file.
Specifically, stack ls dependencies json --global-hints --external will print out a warning of the form
DEPRECATED: The package at Archive from https://github.com/fpco/unliftio/archive/de13c448e4b77e8ce318b78445e17f6c20003325.tar.gz in subdir unliftio does not include a cabal file.
Instead, it includes an hpack package.yaml file for generating a cabal file.
This usage is deprecated; please see https://github.com/commercialhaskell/stack/issues/5210.
Support for this workflow will be removed in the future.
But, it will still return exit code 0 and ignore the archive override and stack_snapshot does not notice that something went wrong.
and add unliftio-core to the packages attribute of stack_snapshot.
Repin the snapshot repository.
Inspect the generated lock-file and observe that unliftio-core is still fetched from Hackage instead of Github at commit de13c448.
Expected behavior
If stack cannot provide the requested override in a custom snapshot, then stack_snapshot fetch/pin should fail with a clear error message, instead of silently ignoring the issue.
Describe the bug
Using a local snapshot to point to an archive URL or specific Github commit/fork will silently ignore the override and still use the Hackage version of the underlying resolver if the new archive does not include a Cabal file.
Specifically,
stack ls dependencies json --global-hints --external
will print out a warning of the formBut, it will still return exit code 0 and ignore the archive override and
stack_snapshot
does not notice that something went wrong.To Reproduce
unliftio-core
to thepackages
attribute ofstack_snapshot
.unliftio-core
is still fetched from Hackage instead of Github at commit de13c448.Expected behavior
If
stack
cannot provide the requested override in a custom snapshot, thenstack_snapshot
fetch/pin should fail with a clear error message, instead of silently ignoring the issue.Environment
Additional context
commercialhaskell/stack#5210 points out that repositories should contain a Cabal file.
The text was updated successfully, but these errors were encountered: