From 2ffa4b7bc991b8006db218cf7498c34c501bcfb4 Mon Sep 17 00:00:00 2001 From: Matthias Dittrich Date: Sun, 11 Nov 2018 02:21:39 +0100 Subject: [PATCH] add workaround for incompatible targets (and update targets file) --- .paket/Paket.Restore.targets | 33 ++++++++++++++++++++++----------- RELEASE_NOTES.md | 16 ++++++++++++++-- build.fsx | 35 ++++++++++++++++++++++------------- 3 files changed, 58 insertions(+), 26 deletions(-) diff --git a/.paket/Paket.Restore.targets b/.paket/Paket.Restore.targets index 6be03acb32f..7c6107011de 100644 --- a/.paket/Paket.Restore.targets +++ b/.paket/Paket.Restore.targets @@ -11,20 +11,26 @@ $(MSBuildThisFileDirectory)..\ $(PaketRootPath)paket-files\paket.restore.cached $(PaketRootPath)paket.lock + classic + proj + assembly + native /Library/Frameworks/Mono.framework/Commands/mono mono + $(PaketToolsPath)paket $(PaketRootPath)paket.exe - $(PaketToolsPath)paket.exe - "$(PaketExePath)" - $(MonoPath) --runtime=v4.0.30319 "$(PaketExePath)" - - <_PaketExeExtension>$([System.IO.Path]::GetExtension("$(PaketExePath)")) - dotnet "$(PaketExePath)" + $(PaketToolsPath)paket.exe + $(PaketToolsPath)paket.exe + $(PaketToolsPath)paket - - "$(PaketExePath)" + + <_PaketExeExtension>$([System.IO.Path]::GetExtension("$(PaketExePath)")) + dotnet "$(PaketExePath)" + "$(PaketExePath)" + $(MonoPath) --runtime=v4.0.30319 "$(PaketExePath)" + "$(PaketExePath)" $(PaketRootPath)paket.bootstrapper.exe $(PaketToolsPath)paket.bootstrapper.exe @@ -38,7 +44,11 @@ true - + + + + + @@ -77,7 +87,7 @@ - + @@ -144,11 +154,12 @@ $([System.String]::Copy('%(PaketReferencesFileLines.Identity)').Split(',')[0]) $([System.String]::Copy('%(PaketReferencesFileLines.Identity)').Split(',')[1]) $([System.String]::Copy('%(PaketReferencesFileLines.Identity)').Split(',')[4]) + $([System.String]::Copy('%(PaketReferencesFileLines.Identity)').Split(',')[5]) %(PaketReferencesFileLinesInfo.PackageVersion) All - runtime + runtime true diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 9c757bdceaf..14209e221f6 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -1,8 +1,20 @@ # Release Notes -## 5.10.1-alpha - tbd +## 5.10.1 - 2018-11-11 -* tbd +* DOCUMENTATION: New homepage design for fake.build, huge thanks to @FlorianBaderDE (with help from @JarnoNijboer) - https://github.com/fsharp/FAKE/pull/2164 https://github.com/fsharp/FAKE/pull/2175 https://github.com/fsharp/FAKE/pull/2178 https://github.com/fsharp/FAKE/pull/2179 +* ICON: Fake has a new icon (again huge thanks to @FlorianBaderDE) +* NEW: Add tab-completion for powershell and bash - https://github.com/fsharp/FAKE/pull/2157 +* NEW: module `Fake.DotNet.FxCop` - https://github.com/fsharp/FAKE/pull/2174 +* ENHANCEMENT: add new ReportType "Cobertura" to `Fake.Testing.ReportGenerator` - https://github.com/fsharp/FAKE/pull/2163 +* ENHANCEMENT: the fake template now supports the buildtask-dsl - https://github.com/fsharp/FAKE/pull/2177 +* ENHANCEMENT: add new fake hints for https://github.com/fsharp/FAKE/issues/2097, https://github.com/fsharp/FAKE/issues/2099 and https://github.com/fsharp/FAKE/issues/2181 +* BUGFIX: Dispose streams created by File.create - https://github.com/fsharp/FAKE/pull/2184/files +* BUGFIX: NuGet.Version.getLastNuGetVersion failed for some servers - https://github.com/fsharp/FAKE/pull/2170 +* BUGFIX: Fake.DotNet.Tesing.NUnit failed to work when temporary-directory contains spaces (for example if windows username contains spaces) - https://github.com/fsharp/FAKE/pull/2180 +* BUGFIX: `--silent` now disables fake hints as well +* (Minor) BREAKING: Refactor & cleanup `Fake.Runtime` internals - make sure to open an issue if you are hit by this. +* OTHER: Internal code cleanup - https://github.com/fsharp/FAKE/pull/2162 ## 5.10.0 - 2018-11-11 diff --git a/build.fsx b/build.fsx index 03f307d9814..8d57bca8a47 100644 --- a/build.fsx +++ b/build.fsx @@ -193,12 +193,32 @@ Target.create "WorkaroundPaketNuspecBug" (fun _ -> |> File.deleteAll ) +let callpaket wd args = + if 0 <> Process.execSimple (fun info -> + { info with + FileName = wd ".paket/paket.exe" + WorkingDirectory = wd + Arguments = args } + |> Process.withFramework + ) (System.TimeSpan.FromMinutes 5.0) then + failwith "paket failed to start" + // Targets Target.create "Clean" (fun _ -> !! "src/*/*/bin" //++ "src/*/*/obj" |> Shell.cleanDirs + let fakeRuntimeVersion = typeof.Assembly.GetName().Version + printfn "fake runtime %O" fakeRuntimeVersion + if fakeRuntimeVersion < new System.Version(5, 10, 0) then + printfn "deleting obj directories because of https://github.com/fsprojects/Paket/issues/3404" + !! "src/*/*/obj" + |> Shell.cleanDirs + // Allow paket to do a full-restore (to improve performance) + Shell.rm ("paket-files" "paket.restore.cached") + callpaket "." "restore" + Shell.cleanDirs [buildDir; testDir; docsDir; apidocsDir; nugetDncDir; nugetLegacyDir; reportDir] // Clean Data for tests @@ -301,16 +321,6 @@ Target.create "SetAssemblyInfo" (fun _ -> () ) -let callpaket wd args = - if 0 <> Process.execSimple (fun info -> - { info with - FileName = wd ".paket/paket.exe" - WorkingDirectory = wd - Arguments = args } - |> Process.withFramework - ) (System.TimeSpan.FromMinutes 5.0) then - failwith "paket failed to start" - Target.create "StartBootstrapBuild" (fun _ -> // Prepare stuff let token = githubtoken.Value @@ -352,12 +362,11 @@ Target.create "StartBootstrapBuild" (fun _ -> let startTime = System.Diagnostics.Stopwatch.StartNew() let maxTime = System.TimeSpan.FromMinutes 60.0 let formatState (state:Octokit.CommitStatus) = - sprintf "{ State: %O, TargetUrl: %O, Description: %O, Context: %O, Url: %O }" - state.State state.TargetUrl state.Description state.Context state.Url + sprintf "{ State: %O, Description: %O, TargetUrl: %O }" + state.State state.Description state.TargetUrl let result = async { let! client = GitHub.createClientWithToken token - //let obsClient = ObservableRepositoriesClient(client) let mutable whileResult = None while startTime.Elapsed < maxTime && whileResult.IsNone do let! combStatus = client.Repository.Status.GetCombined(github_release_user, gitName, sha) |> Async.AwaitTask