Skip to content

Commit f63e0da

Browse files
committed
CI: caching: fx cabal.project copying
In the https://github.com/haskell/haskell-language-server/runs/4596861600?check_suite_focus=true of #2503 Noted that: I rm cabal.project. The sources of cabal-ghc921.project contain: index-state: 2021-12-18T00:00:07Z cp cabal-ghc921.project cabal.project Then from cabal.project CI retrieves finderprint 2021-11-29T08:11:08Z. Seems like GitHub uses alias cp=cp -i - preventing UNIX-like default copying over behaviour. & rm cabal.project does not remove the file. cabal.project seems to be protected from deletion.
1 parent 6cefea1 commit f63e0da

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/caching.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ jobs:
100100
- if: matrix.ghc == '9.0.1'
101101
name: (GHC 9.0.1) Use modified `cabal.project`
102102
run: |
103-
cp cabal-ghc901.project cabal.project
103+
# This seems insane, but it is needed.
104+
rm -f -v cabal.project && cp -v cabal-ghc901.project cabal.project
104105
- if: runner.os == 'Windows' && matrix.ghc == '8.8.4'
105106
name: (Windows,GHC 8.8) Modify `cabal.project` to workaround segfaults
106107
run: |

.github/workflows/test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ jobs:
9595
- if: matrix.ghc == '9.0.1'
9696
name: (GHC 9.0.1) Use modified `cabal.project`
9797
run: |
98-
cp cabal-ghc901.project cabal.project
98+
# This seems insane, but it is needed.
99+
rm -f -v cabal.project && cp -v cabal-ghc901.project cabal.project
99100
- if: runner.os == 'Windows' && matrix.ghc == '8.8.4'
100101
name: (Windows,GHC 8.8) Modify `cabal.project` to workaround segfaults
101102
run: |

0 commit comments

Comments
 (0)