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

Init build fails on SourceLink target build when skipping git origin setting #277

Closed jackfoxy closed 6 years ago

jackfoxy commented 7 years ago

Description

Initial build failing in the SourcLink target. This happens when the user decides not to immediately wire-up the project to an upstream git repo.

Repro steps

Please provide the steps required to reproduce the problem

  1. Initialize git repo [Yn] (hit enter or Y)

  2. Origin (url of git remote; blank to skip) (skip this)

Expected behavior

Target step succeeds, or other benign behavior.

Actual behavior

System.Exception: 1 source files do not have matching checksums in the Git repository at FSI_0005.SourceLink.SourceLink.Index(IEnumerable1 sourceFiles, String pdbFile, String gitRepoPath, String url) in E:\Temp\ProjectScaffold\packages\build\SourceLink.Fake\ tools\SourceLink.fsx:line 101 at FSI_0005.Build.clo@161-12.Invoke(String projFile) in E:\Temp\ProjectScaffold\build.fsx:line 163 at Microsoft.FSharp.Collections.SeqModule.Iterate[T](FSharpFunc2 action, IEnumerable1 source) at FSI_0005.Build.clo@157-11.Invoke(Unit _arg7) in E:\Temp\ProjectScaffold\build.fsx:line 159 at Fake.TargetHelper.runSingleTarget(TargetTemplate1 target) in C:\code\fake\src\app\FakeLib\TargetHelper.fs:line 492

Known workarounds

Not a fatal error. I believe this resolves once an upstream git origin is set.

Related information