-
Notifications
You must be signed in to change notification settings - Fork 27
use Nerdbank.GitVersioning #100
Conversation
Travis CI build failed with:
|
By default without a version.json, it produced: //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Froto.Parser
[<assembly: System.Reflection.AssemblyVersionAttribute("0.0.0.0")>]
[<assembly: System.Reflection.AssemblyFileVersionAttribute("0.0.125.43072")>]
[<assembly: System.Reflection.AssemblyInformationalVersionAttribute("0.0.125+40a86c726a")>]
do()
[<System.CodeDom.Compiler.GeneratedCode("Nerdbank.GitVersioning.Tasks","2.3.136.25003")>]
type internal ThisAssembly() =
static member internal AssemblyVersion = "0.0.0.0"
static member internal AssemblyFileVersion = "0.0.125.43072"
static member internal AssemblyInformationalVersion = "0.0.125+40a86c726a"
static member internal AssemblyName = "Froto.Parser"
static member internal AssemblyTitle = "Froto.Parser"
static member internal AssemblyConfiguration = "Debug"
static member internal GitCommitId = "40a86c726a95abca52dd1fece35727c497f6b86a"
static member internal RootNamespace = "Froto.Parser"
do() It did not conflict with: // <auto-generated>
// Generated by the FSharp WriteCodeFragment class.
// </auto-generated>
namespace FSharp
open System
open System.Reflection
[<assembly: System.Reflection.AssemblyCompanyAttribute("Cameron Taggart, James Hugard")>]
[<assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")>]
[<assembly: System.Reflection.AssemblyDescriptionAttribute("A parser for .proto files for Protocol Buffers.")>]
[<assembly: System.Reflection.AssemblyProductAttribute("Froto.Parser")>]
[<assembly: System.Reflection.AssemblyTitleAttribute("Froto.Parser")>]
do() |
This reverts commit 40a86c7.
script: | ||
- dotnet restore Froto.unix.sln | ||
- dotnet build Froto.unix.sln -c Release | ||
- git fetch --unshallow |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is needed for Travis CI
Compiler/Froto.Compiler.fsproj
Outdated
@@ -27,5 +27,6 @@ | |||
<PackageReference Update="FSharp.Core" Version="4.5.2" /> | |||
<PackageReference Include="Argu" Version="4.0.0" /> | |||
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-*" PrivateAssets="All" /> | |||
<!-- <PackageReference Include="Nerdbank.GitVersioning" Version="2.3.136" /> --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nerbankbank.GitVersioning is failing F# exe builds with:
C:\projects\froto\Compiler\Program.fs(20,5): error FS0433: A function labeled with the 'EntryPointAttribute' attribute must be the last declaration in the last file in the compilation sequence. [C:\projects\froto\Compiler\Froto.Compiler.fsproj]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -1060,6 +1060,7 @@ module RegressionTests = | |||
|
|||
[<Fact>] | |||
let ``proto3 oneof type doesn't parse (#88)`` () = | |||
System.Diagnostics.Debugger.Break() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, don't need that.
This revising the build system to use versioning from https://github.com/AArnott/Nerdbank.GitVersioning. It is one step closer to being fully deterministic so that you can build the same package locally, on AppVeyor, on Travis CI, on Azure Pipelines, or any other CI and get the same bytes. For convenience, the prelease versions are simply the git commit short and match
git rev-parse --short HEAD
as well as what GitHub shows.@7sharp9, you should be able to run
./build.ps1
and get a nupkg to try out elsewhere.I'm getting libgit2sharp warning when I add this: