Skip to content

Remove the Build group and update Fake to 6.2.0 - #4467

Merged
fpellet merged 7 commits into
masterfrom
clean-fake
Oct 31, 2026
Merged

fpellet merged 7 commits into
masterfrom
clean-fake

Conversation

@fpellet

@fpellet fpellet commented Oct 31, 2026 •

Copy link
Copy Markdown
Collaborator

The Build group of paket.dependencies only kept FAKE 4 for the FakeLib.dll of the integration tests, while build.fsx already runs on the Fake 6 modules of the BuildScript group.

Integration tests without FakeLib

The few FAKE 4 helpers the tests used are replaced in TestHelper.fs:

  • BCL helpers: @@, </>, FullName, checkFileExists, copyDir and execProcess, which keeps the timeout, kill and stream handling of ExecProcessWithLambdas, and its "timed out" message.
  • Paket.Core: CleanDir, isWindows and traceWarnfn already resolved to Paket.Core before, since open Paket came after open Fake.
  • References: the open Fake, the FakeLib HintPath of the project and the #r of the #if INTERACTIVE blocks are gone.

The broken src/Paket.Core/Prototypes/script-generation.fsx, a fsi sandbox of 2017 that nothing builds, also referenced FakeLib: it is removed. The scriptgen integration tests cover its scenarios.

Dependencies

  • Build group: removed from paket.dependencies and paket.lock.
  • Fake 6.2.0: the BuildScript group moves from 6.1.4, which also updates its transitive packages (Microsoft.Build.* 18.11, MSBuild.StructuredLogger 2.3.269). In the main group, Fake.Core.ReleaseNotes moves from 5.20 to 6.2; FSharp.Core stays on 9.0.303.
  • paket tool: the local tool moves from 10.3.1 to 12.0.0-alpha003.

The lock was updated with the paket of the repository: paket install with the 10.3.1 and 12.0.0-alpha003 tools rewrites unrelated restrictions of the main group, and turns the <Link> of Paket.Core.fsproj into Common//....

paket pack --release-notes-file

Fake.Core.ReleaseNotes 6 takes as the version the first word of the header that is a whole SemVer version (fsprojects/FAKE#2686). Paket headers such as #### 1.2.3 - date give the same version, but ## [1.2.3] - 2020-01-01 now gives 2020-01-01. RELEASE_NOTES.md notes it as breaking, with --version as the way out.

The few FAKE 4 helpers they used, from the FakeLib.dll of the Build group, are replaced by BCL ones in TestHelper.fs, or by those of Paket.Core.
Its FAKE 4 only gave the integration tests their FakeLib.dll, which they no longer use.
The modules of build.fsx, and the Fake.Core.ReleaseNotes that paket pack reads its release notes file with.
Fake.Core.ReleaseNotes 6 takes the first word of the header that is a whole SemVer version, which can be the date of a Keep a Changelog header.
A fsi sandbox of 2017 for the load scripts generation that nothing builds or runs: it referenced the FakeLib.dll of the removed Build group, assemblies of bin/ that no longer exist there, and an older DependencyCache. The scriptgen integration tests cover these scenarios.
@fpellet
fpellet merged commit 1f2407e into master Oct 31, 2026
5 checks passed
@fpellet
fpellet deleted the clean-fake branch October 31, 2026 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant