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
@aherrmann I'm at a loss as to how to resolve this. Stack doesn't expose enough metadata. We'd need
to add new subcommands to stack ls to expose this information, or augment the new JSON output. Any other ideas?
Yes, it seems this requires more output from stack ls dependencies --json. This makes me wonder, if this becomes available, should stack_snapshot still accept Cabal flags, or should users specify those in custom stack snapshot files?
Using a custom snapshot file may well be cleaner. Best to keep as much Stack configuration in Stack specific files, rather than have that split between Stack specific files and the WORKSPACE file.
Describe the bug
Stack snapshots can define custom cabal flags for building certain packages. The
stack_snapshot
rule ignores them.To Reproduce
From the rules_haskell repository
cassava
to thepackages
argument ofstack_snapshot
in theWORKSPACE
bazel build @hackage//:cassava
The build will fail with
Now add
flags = { "cassava": ["-bytestring--LT-0_10_4"], },
to the arguments ofstack_snapshot
and build it again. The build will succeedExpected behavior
Cassava should be built with the correct flag out of the box because it is specified in the snapshot file
Environment
/cc @mboes
The text was updated successfully, but these errors were encountered: