Skip to content

Commit c53277e

Browse files
authored
Merge pull request #2175 from tweag/cb/cleanup-optional-version
Cleanup and fix CI jobs for Darwin
2 parents 0c078bc + 46239f6 commit c53277e

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

.github/workflows/workflow.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
strategy:
4444
fail-fast: false
4545
matrix:
46-
os: [ubuntu-latest, macos-latest]
46+
os: [ubuntu-latest, macos-12]
4747
module: [rules_haskell, rules_haskell_nix, rules_haskell_tests]
4848
bzlmod: [true, false]
4949
ghc:
@@ -139,7 +139,7 @@ jobs:
139139
strategy:
140140
fail-fast: false
141141
matrix:
142-
os: [ubuntu-latest, macos-latest, windows-latest]
142+
os: [ubuntu-latest, macos-12, windows-latest]
143143
module: [rules_haskell, rules_haskell_tests]
144144
bzlmod: [true, false]
145145
ghc:

haskell/haddock.bzl

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,16 +89,13 @@ def _haskell_doc_aspect_impl(target, ctx):
8989
html_dir = ctx.actions.declare_directory(html_dir_raw)
9090
haddock_file = ctx.actions.declare_file(_get_haddock_path(package_id))
9191

92-
# XXX Haddock really wants a version number, so invent one from
93-
# thin air. See https://github.com/haskell/haddock/issues/898.
92+
args = ctx.actions.args()
93+
args.add("--package-name={0}".format(package_id))
94+
9495
if target[HaskellLibraryInfo].version:
9596
version = target[HaskellLibraryInfo].version
96-
else:
97-
version = "0"
97+
args.add("--package-version={0}".format(version))
9898

99-
args = ctx.actions.args()
100-
args.add("--package-name={0}".format(package_id))
101-
args.add("--package-version={0}".format(version))
10299
args.add_all([
103100
"-D",
104101
haddock_file.path,

0 commit comments

Comments
 (0)