Skip to content

fix(build): include Wolverine.HealthChecks in the Pack target#2712

Merged
jeremydmiller merged 1 commit intomainfrom
issue-2704-publish-healthchecks
May 8, 2026
Merged

fix(build): include Wolverine.HealthChecks in the Pack target#2712
jeremydmiller merged 1 commit intomainfrom
issue-2704-publish-healthchecks

Conversation

@jeremydmiller
Copy link
Copy Markdown
Member

Closes #2704.

Diagnosis

The release workflow (.github/workflows/publish_nugets.yml) runs ./build.sh pack and then a find . -name '*.nupkg' -exec dotnet nuget push over the artifacts. The Pack target in build/build.cs only packs the projects named in a hardcoded nugetProjects array.

Wolverine.HealthChecks was never added to that array. The project is in wolverine.slnx, references core via <ProjectReference>, has the right <PackageId>WolverineFx.HealthChecks</PackageId> metadata, and has tests — but dotnet pack is never invoked on it during a release, so no .nupkg is produced and nothing reaches nuget.org. The reporter ran dotnet add package WolverineFx.HealthChecks and got "no versions available" because no version has ever been pushed, even though every other piece of the pipeline (project, docs page, tests) has been in place since the package was introduced.

Fix

One line: slot Solution.Wolverine_HealthChecks into the Pack target's nugetProjects array next to Solution.Wolverine (parallel naming since both .csprojs sit at the top level of src/).

Verification

$ dotnet pack src/Wolverine.HealthChecks/Wolverine.HealthChecks.csproj \
    --configuration Release --output /tmp/check
$ ls /tmp/check
WolverineFx.HealthChecks.5.38.0.nupkg

The build script itself (build/build.csproj) compiles cleanly with the new Solution.Wolverine_HealthChecks accessor — Nuke's solution-property generator picks it up from the existing <Project Path="src/Wolverine.HealthChecks/Wolverine.HealthChecks.csproj" /> entry in wolverine.slnx.

The next manual run of the Publish Wolverine Nugets workflow will produce and push WolverineFx.HealthChecks.<version>.nupkg.

Closes #2704.

The release workflow (`.github/workflows/publish_nugets.yml`) runs
`./build.sh pack` and then `find . -name '*.nupkg' -exec dotnet nuget
push`. The `Pack` target in `build/build.cs` packs each project named
in a hardcoded `nugetProjects` array — and `Wolverine.HealthChecks`
was never added to it. The project is in `wolverine.slnx`, builds
cleanly, has a `<PackageId>WolverineFx.HealthChecks</PackageId>`
metadata block, and has tests, but no `.nupkg` is ever produced
during a release run, so nothing reaches nuget.org.

One-line addition: `Solution.Wolverine_HealthChecks` slotted next to
`Solution.Wolverine` in the array.

Verified locally with `dotnet pack src/Wolverine.HealthChecks/Wolverine.HealthChecks.csproj
--configuration Release` — produces `WolverineFx.HealthChecks.5.38.0.nupkg`
without errors.
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.

New WolverineFX.HealthChecks NuGet package not published

1 participant