File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change 43
43
strategy :
44
44
fail-fast : false
45
45
matrix :
46
- os : [ubuntu-latest, macos-latest ]
46
+ os : [ubuntu-latest, macos-12 ]
47
47
module : [rules_haskell, rules_haskell_nix, rules_haskell_tests]
48
48
bzlmod : [true, false]
49
49
ghc :
@@ -139,7 +139,7 @@ jobs:
139
139
strategy :
140
140
fail-fast : false
141
141
matrix :
142
- os : [ubuntu-latest, macos-latest , windows-latest]
142
+ os : [ubuntu-latest, macos-12 , windows-latest]
143
143
module : [rules_haskell, rules_haskell_tests]
144
144
bzlmod : [true, false]
145
145
ghc :
Original file line number Diff line number Diff line change @@ -89,16 +89,13 @@ def _haskell_doc_aspect_impl(target, ctx):
89
89
html_dir = ctx .actions .declare_directory (html_dir_raw )
90
90
haddock_file = ctx .actions .declare_file (_get_haddock_path (package_id ))
91
91
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
+
94
95
if target [HaskellLibraryInfo ].version :
95
96
version = target [HaskellLibraryInfo ].version
96
- else :
97
- version = "0"
97
+ args .add ("--package-version={0}" .format (version ))
98
98
99
- args = ctx .actions .args ()
100
- args .add ("--package-name={0}" .format (package_id ))
101
- args .add ("--package-version={0}" .format (version ))
102
99
args .add_all ([
103
100
"-D" ,
104
101
haddock_file .path ,
You can’t perform that action at this time.
0 commit comments