Repository navigation
Build on Nullean.Make.Fs with the commands in Proc.Fs - #50
Merged
Merged
Conversation
The targets are a Make.Fs DU whose doc comments are the help text, and each body is a Proc.Fs shell block: `sh $"..."` for the commands, `text` for MinVer's version and the commit SHA. Argu, Bullseye, Fake.Tools.Git and the build's own Proc are gone; Make.Fs brings Proc, and the build project moves to net11.0, which Make.Fs needs. The target names CI calls stay as they were (`generatepackages`, `publishcontainers`, ...): Make.Fs kebab-cases case names, so the multi-word ones are spelled as one word. `-s true` still skips the dependencies, `build` still cleans first, and `mise run ci` runs the same targets in the same order. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The F# build now runs on Nullean.Make.Fs, and its commands are Proc.Fs
sh $"…"lines instead of argument lists passed to the C# Proc API. The targets, their names and whatmise run cidoes are unchanged.Prompt summary: Port every nullean repository's
build/scriptsfrom Argu + Bullseye to Nullean.Make.Fs, with commands written in Proc.Fs (step 4b of the rollout playbook, as on nullean/scoped-filesystem#21 and #22 and nullean/nupkg-validator#32).Why
The build defined each target three times: an Argu case, its usage string and a Bullseye registration. Every command was an
exec "dotnet" [list]call, and MinVer's version and the commit SHA came from scanningProc.Startoutput or from Fake.Tools.Git.What
Targets as a Make.Fs DU
Program.fsholds oneTargetunion: the///comments are the--helptext, andBindgives each case its body.buildcomposesclean, so it always cleans first, as before.packrequiresbuildand composes generate, validate and diff.cirequirespack.-s truestill skips only what a target requires.Make.Fs kebab-cases case names and has no aliases, so the multi-word cases are spelled as one word (
Generatepackages,Publishcontainers, ...) to keep the names CI calls through./build.sh.--pushis a Make.Fs global flag.Commands in Proc.Fs
Every command is a
sh $"…"line, and arguments are interpolated values, so each one stays a single argument. The provider specs passed to the API diff (this checkout's own tool) are quoted, because an unquoted|would pipe. TheContainerImageTagsvalue still carries its quotes, so MSBuild doesn't split the tags at;.Versions.fsreads MinVer's version and the commit SHA withtextinsideshell { }. It also keeps the dotnet/sdk#53783 retry ofdotnet tool restore, written withexitCode: the Proc.Fs that Make.Fs 0.25.0 brings, 0.17, has noCmd.retry. The zip patching of theanypackage moves unchanged toPackaging.fs. Nothing inbuild/scriptsopensProcNetany more.Packages
Directory.Packages.propsdrops Argu, Bullseye and Fake.Tools.Git, and adds Nullean.Make.Fs 0.25.0. The build no longer needs its own Proc 0.14.0VersionOverride; the tool keeps its Proc 0.9.1. The build project moves to net11.0, which Make.Fs requires, and generates its documentation file for the descriptions. The net10.0 runtime stays inmise.tomlfor nupkg-validator and the API diff.AGENTS.mdrecords the rule.Verify
Locally on macOS,
mise run cionmainand on this branch runs clean, build, generatepackages, validatepackages, generateapichanges, pack and ci in that order. nupkg-validator checks the same informational version and token, and both produce the same two packages (file lists and nuspecs identical apart from the branch name) and the same API report, suggesting the same version change.build -s truestill cleans and builds, andgenerateapichanges -s trueruns only the diff under its old name.publishcontainerscould not be run here (no Docker); CI'sAOT pack (linux-x64)leg runs it.🤖 Generated with Claude Code