Skip to content

Build on Nullean.Make.Fs with the commands in Proc.Fs - #50

Merged
Mpdreamz merged 1 commit into
mainfrom
feature/make-fs
Nov 11, 2026
Merged

Mpdreamz merged 1 commit into
mainfrom
feature/make-fs

Conversation

@Mpdreamz

Copy link
Copy Markdown
Contributor

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 what mise run ci does are unchanged.

Prompt summary: Port every nullean repository's build/scripts from 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 scanning Proc.Start output or from Fake.Tools.Git.

What

Targets as a Make.Fs DU

Program.fs holds one Target union: the /// comments are the --help text, and Bind gives each case its body. build composes clean, so it always cleans first, as before. pack requires build and composes generate, validate and diff. ci requires pack. -s true still 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. --push is 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. The ContainerImageTags value still carries its quotes, so MSBuild doesn't split the tags at ;. Versions.fs reads MinVer's version and the commit SHA with text inside shell { }. It also keeps the dotnet/sdk#53783 retry of dotnet tool restore, written with exitCode: the Proc.Fs that Make.Fs 0.25.0 brings, 0.17, has no Cmd.retry. The zip patching of the any package moves unchanged to Packaging.fs. Nothing in build/scripts opens ProcNet any more.

Packages

Directory.Packages.props drops Argu, Bullseye and Fake.Tools.Git, and adds Nullean.Make.Fs 0.25.0. The build no longer needs its own Proc 0.14.0 VersionOverride; 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 in mise.toml for nupkg-validator and the API diff. AGENTS.md records the rule.

Verify

./build.sh --help
mise run ci

Locally on macOS, mise run ci on main and 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 true still cleans and builds, and generateapichanges -s true runs only the diff under its old name. publishcontainers could not be run here (no Docker); CI's AOT pack (linux-x64) leg runs it.

🤖 Generated with Claude Code

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]>
@Mpdreamz Mpdreamz added the chore Internal change, no user-visible effect (patch) label Nov 11, 2026
@Mpdreamz
Mpdreamz merged commit 2666115 into main Nov 11, 2026
5 checks passed
@Mpdreamz
Mpdreamz deleted the feature/make-fs branch November 11, 2026 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Internal change, no user-visible effect (patch)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant