File tree 3 files changed +22
-3
lines changed
3 files changed +22
-3
lines changed Original file line number Diff line number Diff line change 57
57
run : |
58
58
echo "CABAL_PKGS_DIR=~/.cabal/packages" >> $GITHUB_ENV
59
59
60
+ # All workflows which distinquishes cache on `cabal.project` needs this.
61
+ - name : Workaround shorten binary names
62
+ run : |
63
+ sed -i.bak -e 's/haskell-language-server/hls/g' \
64
+ -e 's/haskell_language_server/hls/g' \
65
+ haskell-language-server.cabal cabal.project
66
+ sed -i.bak -e 's/Paths_haskell_language_server/Paths_hls/g' \
67
+ src/**/*.hs exe/*.hs
68
+
60
69
- name : Retrieving `cabal.project` Hackage timestamp
61
70
run : |
62
71
# Form: index-state: 2021-11-29T08:11:08Z
Original file line number Diff line number Diff line change 95
95
echo "package floskell" >> cabal.project
96
96
echo " ghc-options: -O0" >> cabal.project
97
97
98
+ # Shorten binary names as a workaround for filepath length limits in Windows,
99
+ # but since tests are hardcoded on this workaround -
100
+ # all platforms (in 2021-12-07) need it.
101
+ # All workflows which distinquishes cache on `cabal.project` needs this.
102
+ - name : Workaround shorten binary names
103
+ run : |
104
+ sed -i.bak -e 's/haskell-language-server/hls/g' \
105
+ -e 's/haskell_language_server/hls/g' \
106
+ haskell-language-server.cabal cabal.project
107
+ sed -i.bak -e 's/Paths_haskell_language_server/Paths_hls/g' \
108
+ src/**/*.hs exe/*.hs
109
+
98
110
- name : Retrieving `cabal.project` Hackage timestamp
99
111
run : |
100
112
# Form: index-state: 2021-11-29T08:11:08Z
Original file line number Diff line number Diff line change @@ -102,9 +102,7 @@ jobs:
102
102
echo "package floskell" >> cabal.project
103
103
echo " ghc-options: -O0" >> cabal.project
104
104
105
- # Shorten binary names as a workaround for filepath length limits in Windows,
106
- # but since tests are hardcoded on this workaround -
107
- # all platforms (in 2021-12-07) need it.
105
+ # All workflows which distinquishes cache on `cabal.project` needs this.
108
106
- name : Workaround shorten binary names
109
107
run : |
110
108
sed -i.bak -e 's/haskell-language-server/hls/g' \
You can’t perform that action at this time.
0 commit comments