Skip to content

Commit

Permalink
Use an arbitrary big version number for local packages.
Browse files Browse the repository at this point in the history
If we try to use the last published version `.NET` complains that `4.5.0` is actually older that `4.5.0-local-build-...`
  • Loading branch information
MangelMaxime committed Nov 19, 2023
1 parent bd53d8f commit 47f7cbd
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/Fable.Build/Package.fs
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,8 @@ let handle (args: string list) =

Directory.clean packageDestination

let fableCliVersionInfo = Changelog.getLastVersion Changelog.fableCLi

let fableCliVersion =
fableCliVersionInfo.Version.ToString()
+ "-local-build-"
"900.0.0-local-build-"
+ DateTime.Now.ToString("yyyyMMdd-HHhmm")

let compilerFsPath =
Expand All @@ -53,11 +50,8 @@ let handle (args: string list) =
// This avoid common error of comitting the modified file
File.WriteAllText(compilerFsPath, compilerFsOriginalContent)

let fableCoreVersionInfo = Changelog.getLastVersion Changelog.fableCore

let fableCoreVersion =
fableCoreVersionInfo.Version.ToString()
+ "-local-build-"
"900.0.0-local-build-"
+ DateTime.Now.ToString("yyyyMMdd-HHhmm")

Command.Run(
Expand Down

0 comments on commit 47f7cbd

Please sign in to comment.