Commit 76c6a05
committed
Proper boolean options;
The options `enable-stack`, `stack-no-global`, `stack-setup-ghc` and `disable-matcher` are now proper booleans only accepting `true` or `false`.
Previously, they were true when set to some non-empty string, even when set to "false" or "off" etc.
`disable-matcher` is deprecated in favour of a new positive form `enable-matcher`.
`enable-stack` is now implied by setting another stack-related option, i.e., one of `stack-version`, `stack-no-global` and `stack-setup-ghc`.
Previously, it was a prerequisite to these options.
Contradictory options now give an error, such as `stack-no-global` with `ghc-version` or `enable-stack: false` with `stack-version`.
Fixes: haskell/actions#142enable-matcher; imply enable-stack
1 parent f8aac33 commit 76c6a05
File tree
7 files changed
+309
-104
lines changed- __tests__
- dist
- lib
- src
7 files changed
+309
-104
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
207 | 202 | | |
208 | 203 | | |
209 | 204 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
46 | 54 | | |
47 | 55 | | |
48 | 56 | | |
| |||
51 | 59 | | |
52 | 60 | | |
53 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
54 | 81 | | |
55 | 82 | | |
56 | 83 | | |
| |||
135 | 162 | | |
136 | 163 | | |
137 | 164 | | |
138 | | - | |
| 165 | + | |
139 | 166 | | |
140 | | - | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
141 | 173 | | |
142 | 174 | | |
143 | 175 | | |
144 | | - | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
145 | 187 | | |
146 | | - | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
147 | 194 | | |
148 | 195 | | |
149 | 196 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | | - | |
| 23 | + | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | | - | |
| 27 | + | |
| 28 | + | |
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
| |||
33 | 36 | | |
34 | 37 | | |
35 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
36 | 43 | | |
37 | 44 | | |
38 | | - | |
| 45 | + | |
| 46 | + | |
39 | 47 | | |
40 | 48 | | |
41 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13714 | 13714 | | |
13715 | 13715 | | |
13716 | 13716 | | |
13717 | | - | |
| 13717 | + | |
| 13718 | + | |
13718 | 13719 | | |
13719 | 13720 | | |
13720 | 13721 | | |
| |||
13777 | 13778 | | |
13778 | 13779 | | |
13779 | 13780 | | |
| 13781 | + | |
| 13782 | + | |
| 13783 | + | |
| 13784 | + | |
| 13785 | + | |
| 13786 | + | |
| 13787 | + | |
| 13788 | + | |
| 13789 | + | |
| 13790 | + | |
| 13791 | + | |
| 13792 | + | |
| 13793 | + | |
| 13794 | + | |
| 13795 | + | |
| 13796 | + | |
| 13797 | + | |
| 13798 | + | |
| 13799 | + | |
| 13800 | + | |
| 13801 | + | |
| 13802 | + | |
| 13803 | + | |
| 13804 | + | |
| 13805 | + | |
| 13806 | + | |
| 13807 | + | |
| 13808 | + | |
| 13809 | + | |
| 13810 | + | |
| 13811 | + | |
13780 | 13812 | | |
13781 | | - | |
| 13813 | + | |
13782 | 13814 | | |
13783 | 13815 | | |
13784 | 13816 | | |
| |||
13788 | 13820 | | |
13789 | 13821 | | |
13790 | 13822 | | |
| 13823 | + | |
| 13824 | + | |
| 13825 | + | |
13791 | 13826 | | |
13792 | 13827 | | |
13793 | | - | |
13794 | | - | |
13795 | | - | |
13796 | | - | |
13797 | | - | |
13798 | | - | |
13799 | | - | |
13800 | | - | |
13801 | | - | |
13802 | | - | |
13803 | | - | |
| 13828 | + | |
| 13829 | + | |
| 13830 | + | |
| 13831 | + | |
| 13832 | + | |
| 13833 | + | |
| 13834 | + | |
| 13835 | + | |
| 13836 | + | |
| 13837 | + | |
| 13838 | + | |
| 13839 | + | |
| 13840 | + | |
| 13841 | + | |
13804 | 13842 | | |
13805 | | - | |
13806 | | - | |
13807 | | - | |
| 13843 | + | |
| 13844 | + | |
| 13845 | + | |
13808 | 13846 | | |
| 13847 | + | |
13809 | 13848 | | |
13810 | | - | |
13811 | | - | |
13812 | | - | |
13813 | | - | |
13814 | | - | |
| 13849 | + | |
| 13850 | + | |
| 13851 | + | |
| 13852 | + | |
| 13853 | + | |
| 13854 | + | |
| 13855 | + | |
| 13856 | + | |
| 13857 | + | |
| 13858 | + | |
| 13859 | + | |
| 13860 | + | |
| 13861 | + | |
13815 | 13862 | | |
13816 | 13863 | | |
13817 | 13864 | | |
13818 | 13865 | | |
13819 | | - | |
13820 | | - | |
13821 | 13866 | | |
13822 | 13867 | | |
13823 | 13868 | | |
| |||
13842 | 13887 | | |
13843 | 13888 | | |
13844 | 13889 | | |
13845 | | - | |
| 13890 | + | |
13846 | 13891 | | |
13847 | 13892 | | |
13848 | 13893 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
| 67 | + | |
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
| |||
0 commit comments