Skip to content

Commit 70b632b

Browse files
committed
CI: {caching,test}: make rm/cp comment more informative
1 parent 34aab46 commit 70b632b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/caching.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,9 @@ jobs:
104104
- if: matrix.ghc == '9.0.1'
105105
name: (GHC 9.0.1) Use modified `cabal.project`
106106
run: |
107-
# This seems insane, but it is needed.
107+
# File has some protections preventing regular `rm`.
108+
# `&&` insures `rm -f` returns positive.
109+
# Some platforms have `alias cp='cp -i'`.
108110
rm -f -v cabal.project && cp -v cabal-ghc901.project cabal.project
109111
- if: runner.os == 'Windows' && matrix.ghc == '8.8.4'
110112
name: (Windows,GHC 8.8) Modify `cabal.project` to workaround segfaults

.github/workflows/test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,9 @@ jobs:
9696
- if: matrix.ghc == '9.0.1'
9797
name: (GHC 9.0.1) Use modified `cabal.project`
9898
run: |
99-
# This seems insane, but it is needed.
99+
# File has some protections preventing regular `rm`.
100+
# `&&` insures `rm -f` returns positive.
101+
# Some platforms have `alias cp='cp -i'`.
100102
rm -f -v cabal.project && cp -v cabal-ghc901.project cabal.project
101103
- if: runner.os == 'Windows' && matrix.ghc == '8.8.4'
102104
name: (Windows,GHC 8.8) Modify `cabal.project` to workaround segfaults

0 commit comments

Comments
 (0)