diff options
author | David Eichmann <EichmannD@gmail.com> | 2019-06-27 11:11:28 +0100 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2019-07-02 16:20:36 -0400 |
commit | df3e5b744db29c085f5bc05f8b609197bcbf9b0c (patch) | |
tree | 5c273a88f28355d422abcf13bb29a0fa2602a0f2 /hadrian | |
parent | 60b9eab9ffa7560334ef886ae1a0461d55a95f9a (diff) | |
download | haskell-df3e5b744db29c085f5bc05f8b609197bcbf9b0c.tar.gz |
Hadrian: disable cloud build cache for symlinks #16800
This is a temporary workaround shake not supporting symlinks
when using cloud/cached builds.
Diffstat (limited to 'hadrian')
-rw-r--r-- | hadrian/src/Hadrian/Utilities.hs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hadrian/src/Hadrian/Utilities.hs b/hadrian/src/Hadrian/Utilities.hs index c934fa259d..4a4061157b 100644 --- a/hadrian/src/Hadrian/Utilities.hs +++ b/hadrian/src/Hadrian/Utilities.hs @@ -305,6 +305,10 @@ isGeneratedSource file = buildRoot <&> (`isPrefixOf` file) -- missing. createFileLink :: FilePath -> FilePath -> Action () createFileLink linkTarget link = do + -- TODO `disableHistory` is a temporary fix (see issue #16866). Remove + -- `disableHistory` when shake issue is fixed: https://github.com/ndmitchell/shake/issues/683. + historyDisable + let source = if isAbsolute linkTarget then linkTarget else takeDirectory link -/- linkTarget |