From 062e030ce705280a15a40b909f13e346aed063a6 Mon Sep 17 00:00:00 2001 From: Matthias Dittrich Date: Mon, 21 May 2018 10:35:51 +0200 Subject: [PATCH 1/4] small fix --- RELEASE_NOTES.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 49c43c0b259..1a71bc32fae 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -22,9 +22,9 @@ * ENHANCEMENT: Add partial restore (to improve the speed when using in a release-pipeline) - https://github.com/fsharp/FAKE/issues/1926 * FAKE5: Xake now supports FAKE 5 and is advertised as module - https://github.com/xakebuild/Xake -- ENHANCEMENT: Parallelize targets even more - https://github.com/fsharp/FAKE/pull/1934 -- COSMETICS: Targets are always shown as "failed" - https://github.com/fsharp/FAKE/issues/1929 -- COSMETICS: Target description was printed twice - https://github.com/fsharp/FAKE/issues/1931 +* ENHANCEMENT: Parallelize targets even more - https://github.com/fsharp/FAKE/pull/1934 +* COSMETICS: Targets are always shown as "failed" - https://github.com/fsharp/FAKE/issues/1929 +* COSMETICS: Target description was printed twice - https://github.com/fsharp/FAKE/issues/1931 ## 5.0.0-rc012 - 2018-05-12 From f221cea3894538fd3fc20c7a26af78ee11a2a6bf Mon Sep 17 00:00:00 2001 From: Matthias Dittrich Date: Mon, 21 May 2018 12:12:29 +0200 Subject: [PATCH 2/4] Add tests and fix https://github.com/fsharp/FAKE/issues/1947 --- src/app/Fake.Runtime/CoreCache.fs | 2 +- src/app/Fake.Runtime/HashGeneration.fs | 74 +++++++++++----- src/test/Fake.Core.UnitTests/Fake.Runtime.fs | 92 ++++++++++++++++++++ 3 files changed, 143 insertions(+), 25 deletions(-) diff --git a/src/app/Fake.Runtime/CoreCache.fs b/src/app/Fake.Runtime/CoreCache.fs index e4f0d03a8c2..eef032929cc 100644 --- a/src/app/Fake.Runtime/CoreCache.fs +++ b/src/app/Fake.Runtime/CoreCache.fs @@ -307,7 +307,7 @@ let prepareContext (config:FakeConfig) (cache:ICachingProvider) = let getHashUncached () = //TODO this is only calculating the hash for the input file, not anything #load-ed - let allScriptContents = getAllScripts config.CompileOptions.FsiOptions.Defines config.ScriptTokens config.ScriptFilePath + let allScriptContents = getAllScripts config.CompileOptions.FsiOptions.Defines config.ScriptTokens.Value config.ScriptFilePath let getOpts (c:CompileOptions) = c.FsiOptions.AsArgs // @ c.CompileReferences allScriptContents, getScriptHash allScriptContents (getOpts config.CompileOptions) diff --git a/src/app/Fake.Runtime/HashGeneration.fs b/src/app/Fake.Runtime/HashGeneration.fs index 706aace504e..51e8236eb74 100644 --- a/src/app/Fake.Runtime/HashGeneration.fs +++ b/src/app/Fake.Runtime/HashGeneration.fs @@ -17,31 +17,32 @@ type Script = { let getAllScriptContents (pathsAndContents : seq