Skip to content

Commit

Permalink
Disable stack_snapshot lock file on Windows
Browse files Browse the repository at this point in the history
It was pinned on Linux and contains platform specific dependencies, e.g.
`unix`.
  • Loading branch information
aherrmann committed Feb 23, 2021
1 parent 84b288f commit 15d9ad8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ stack_snapshot(
],
setup_deps = {"polysemy": ["cabal-doctest"]},
snapshot = test_stack_snapshot,
stack_snapshot_json = "//:stackage_snapshot.json",
stack_snapshot_json = "//:stackage_snapshot.json" if not is_windows else None,
tools = [
# This is not required, as `stack_snapshot` would build alex
# automatically, however it is used as a test for user provided
Expand All @@ -106,14 +106,14 @@ stack_snapshot(
extra_deps = {"zlib": ["//tests:zlib"]},
packages = ["zlib"],
snapshot = test_stack_snapshot,
stack_snapshot_json = "//:stackage-zlib-snapshot.json",
stack_snapshot_json = "//:stackage-zlib-snapshot.json" if not is_windows else None,
)

stack_snapshot(
name = "stackage-pinning-test",
local_snapshot = "//:stackage-pinning-test.yaml",
packages = ["hspec"],
stack_snapshot_json = "//:stackage-pinning-test_snapshot.json",
stack_snapshot_json = "//:stackage-pinning-test_snapshot.json" if not is_windows else None,
)

stack_snapshot(
Expand All @@ -126,7 +126,7 @@ stack_snapshot(
haddock = False,
local_snapshot = "//:ghcide-stack-snapshot.yaml",
packages = ["ghcide"],
stack_snapshot_json = "//:ghcide-snapshot.json",
stack_snapshot_json = "//:ghcide-snapshot.json" if not is_windows else None,
)

load(
Expand Down

0 comments on commit 15d9ad8

Please sign in to comment.