fsprojects / ProjectScaffold

A prototypical .NET solution (file system layout and tooling), recommended for F# projects
http://fsprojects.github.io/ProjectScaffold
The Unlicense
515 stars 154 forks source link

Initial build.sh fails on OSX #346

Open bohdyone opened 5 years ago

bohdyone commented 5 years ago

Description

The initial run of build.sh after clone fails with error: Paket failed with -> The NuGet source https://ci.appveyor.com/nuget/fsharp-formatting for package FSharp.Formatting was not found in the paket.dependencies file with sources [NuGetV2 {Url = "https://www.nuget.org/api/v2"; Authentication = Paket.NetUtils+AuthProviderModule+ofFunction@38;}]

Repro steps

  1. git clone https://github.com/fsprojects/ProjectScaffold.git
  2. cd ProjectScaffold
  3. ./build.sh

Expected behavior

Initial set-up is successful.

Actual behavior

./build.sh 
  shasum: /Users/boggers/Documents/Code/file-transfer/TransferLib/.paket/../paket-files/paket.restore.cached: 
  Paket version 5.203.2
  Extracted Paket.Restore.targets to: /Users/boggers/Documents/Code/file-transfer/TransferLib/.paket/Paket.Restore.targets
  Starting full restore process.
  Downloading Fake.Api.GitHub 5.2 (FakeBuild)
  Downloading Octokit 0.31 (FakeBuild)
  Downloading System.Reactive.Experimental 4.0 (FakeBuild)
  Download of System.Reactive.Experimental 4.0 (FakeBuild) done in 4 seconds. (51 kbit/s, 0 MB)
  Downloading System.Reactive.Runtime.Remoting 4.0 (FakeBuild)
  Download of Fake.Api.GitHub 5.2 (FakeBuild) done in 4 seconds. (122 kbit/s, 0 MB)
  Downloading Fake.DotNet.AssemblyInfoFile 5.2 (FakeBuild)
  Download of Octokit 0.31 (FakeBuild) done in 4 seconds. (1522 kbit/s, 0 MB)
  Download of System.Reactive.Runtime.Remoting 4.0 (FakeBuild) done in 2 seconds. (100 kbit/s, 0 MB)
  Downloading System.Reactive.Windows.Forms 4.0 (FakeBuild)
  Download of Fake.DotNet.AssemblyInfoFile 5.2 (FakeBuild) done in 2 seconds. (292 kbit/s, 0 MB)
  Downloading Fake.DotNet.FSFormatting 5.2 (FakeBuild)
  Download of System.Reactive.Windows.Forms 4.0 (FakeBuild) done in 2 seconds. (85 kbit/s, 0 MB)
  Downloading System.Reactive.Windows.Threading 4.0 (FakeBuild)
  Download of Fake.DotNet.FSFormatting 5.2 (FakeBuild) done in 2 seconds. (139 kbit/s, 0 MB)
  Downloading Fake.DotNet.MSBuild 5.2 (FakeBuild)
  Download of System.Reactive.Windows.Threading 4.0 (FakeBuild) done in 2 seconds. (116 kbit/s, 0 MB)
  Downloading System.Reactive.WindowsRuntime 4.0 (FakeBuild)
  Download of Fake.DotNet.MSBuild 5.2 (FakeBuild) done in 3 seconds. (305 kbit/s, 0 MB)
  Downloading Fake.DotNet.Testing.Expecto 5.2 (FakeBuild)
  Download of System.Reactive.WindowsRuntime 4.0 (FakeBuild) done in 2 seconds. (95 kbit/s, 0 MB)
  Downloading System.Reflection.TypeExtensions 4.5 (FakeBuild)
  Download of Fake.DotNet.Testing.Expecto 5.2 (FakeBuild) done in 1 second. (164 kbit/s, 0 MB)
  Downloading Fake.Testing.Common 5.2 (FakeBuild)
  Download of Fake.Testing.Common 5.2 (FakeBuild) done in 1 second. (142 kbit/s, 0 MB)
  Downloading Microsoft.NETCore.UniversalWindowsPlatform 6.1.7 (FakeBuild)
  Download of System.Reflection.TypeExtensions 4.5 (FakeBuild) done in 2 seconds. (823 kbit/s, 0 MB)
  Download of Microsoft.NETCore.UniversalWindowsPlatform 6.1.7 (FakeBuild) done in 3 seconds. (8813 kbit/s, 4 MB)
  Performance:
   - Disk IO: 1 second
   - Average Download Time: 968 milliseconds
   - Number of downloads: 14
   - Average Request Time: 752 milliseconds
   - Number of Requests: 17
   - Runtime: 23 seconds
  Paket failed with
  -> The NuGet source https://ci.appveyor.com/nuget/fsharp-formatting for package FSharp.Formatting was not found in the paket.dependencies file with sources [NuGetV2 {Url = "https://www.nuget.org/api/v2";
               Authentication = Paket.NetUtils+AuthProviderModule+ofFunction@38;}]
/Users/boggers/Documents/Code/file-transfer/TransferLib/.paket/Paket.Restore.targets(81,5): error MSB3073: The command "/Library/Frameworks/Mono.framework/Commands/mono --runtime=v4.0.30319 "/Users/boggers/Documents/Code/file-transfer/TransferLib/.paket/paket.exe" restore" exited with code 1. [/Users/boggers/Documents/Code/file-transfer/TransferLib/build.proj]

Known workarounds

Related information

halcwb commented 5 years ago

It fails on windows as well, the same error. Actually when you look at the appveyor badge, the same problem. It is very poor practice to let your main branch fail like that and just leave it, I think.

chespinoza commented 5 years ago

in my case using it on MacOS Mojave it works and generate all the files but the generated project isn't recognized by VS nor ionide returning several errors and when trying to run it, it fails. So far the only way to get a project working well has been creating projects manually with: dotnet new console -lang F# -o myFApp and adding paket manually too.