Skip to content

Add VERSIONS.txt step to the native-dependency-update skill - #4215

Merged
mattleibow merged 1 commit into
mainfrom
dev/native-dep-skill-versions-txt-step
Jun 22, 2026
Merged

mattleibow merged 1 commit into
mainfrom
dev/native-dep-skill-versions-txt-step

Conversation

@mattleibow

Copy link
Copy Markdown
Contributor

Problem

When bumping an independently-versioned native dependency, scripts/VERSIONS.txt must be updated alongside DEPS/submodule and cgmanifest.json. The native-dependency-update skill never listed that step, so the harfbuzz 14.2.1 bump (#4167) left VERSIONS.txt stale at 14.2.0 (corrected in #4214). The previous bump (#4035, 8.3.1 → 14.2.0) did update it — this makes that an explicit, documented step so it can't be missed again.

Changes

.agents/skills/native-dependency-update/SKILL.md:

  • Phase 3 — add the scripts/VERSIONS.txt step, with a harfbuzz lines + soname-formula table (release, soname, file, all nuget lines).
  • Add it to the Pre-Flight checklist, the Phase 5 completion checklist, and the NEVER table.
  • Scope it to independently-versioned deps (currently only harfbuzz); the statically-linked deps (libpng, zlib, expat, libwebp, freetype, libjpeg-turbo) have no VERSIONS.txt entries and are explicitly excluded.

Docs-only change to a skill file — no build/test impact.

Companion data fix: #4214.

The harfbuzz 14.2.1 bump (#4167) updated cgmanifest.json and the externals/skia
submodule but left scripts/VERSIONS.txt stale at 14.2.0, because the skill never
listed VERSIONS.txt as a step. The prior bump (#4035, 8.3.1 -> 14.2.0) did update
it; this restores that as an explicit, documented step so it can't be missed again.

  * Phase 3: add the VERSIONS.txt step with a harfbuzz lines + soname-formula table.
  * Add it to the Pre-Flight checklist, the Phase 5 completion checklist, and the
    NEVER table.
  * Scope it to independently-versioned deps (only harfbuzz); the statically-linked
    deps (libpng, zlib, expat, libwebp, freetype, libjpeg-turbo) have no VERSIONS.txt
    entry and are explicitly excluded.

Co-authored-by: Copilot <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

📦 Try the packages from this PR

Warning

Do not run these scripts without first reviewing the code in this PR.

Step 1 — Download the packages

bash / macOS / Linux:

curl -fsSL https://raw.githubusercontent.com/mono/SkiaSharp/main/scripts/get-skiasharp-pr.sh | bash -s -- 4215

PowerShell / Windows:

iex "& { $(irm https://raw.githubusercontent.com/mono/SkiaSharp/main/scripts/get-skiasharp-pr.ps1) } 4215"

Step 2 — Add the local NuGet source

dotnet nuget add source ~/.skiasharp/hives/pr-4215/packages --name skiasharp-pr-4215
More options
Option Description
--successful-only / -SuccessfulOnly Only use successful builds
--force / -Force Overwrite previously downloaded packages
--list / -List List available artifacts without downloading
--build-id ID / -BuildId ID Download from a specific build

Or download manually from Azure Pipelines — look for the nuget artifact on the build for this PR.

Remove the source when you're done:

dotnet nuget remove source skiasharp-pr-4215

mattleibow added a commit that referenced this pull request Jun 22, 2026
Sync VERSIONS.txt with harfbuzz 14.2.1 (#4214)

Changes: harfbuzz/harfbuzz@14.2.0...14.2.1
Context: #4167

The harfbuzz 14.2.1 bump (#4167) advanced the externals/skia submodule and
cgmanifest.json to 14.2.1 but left scripts/VERSIONS.txt at 14.2.0. As a result
the native soname, the HarfBuzzSharp DLL FileVersion, and the published NuGet
versions were all out of sync with the bundled binary. This is not cosmetic:
the soname/file lines feed the native build, so Linux produced
libHarfBuzzSharp.so.0.61420.0 and the DLL reported FileVersion 14.2.0 for a
14.2.1 binary.

Bring all harfbuzz entries to 14.2.1 to match DEPS and cgmanifest.json: release,
soname (0.61421.0, per the in-file 60000 + major*100 + minor*10 + micro formula),
HarfBuzzSharp file, and the HarfBuzzSharp + 9 NativeAssets nuget lines.

The skill gap that caused the miss is fixed separately in #4215.

Co-authored-by: Matthew Leibowitz <[email protected]>
Co-authored-by: Copilot <[email protected]>
@mattleibow
mattleibow merged commit ca745ff into main Jun 22, 2026
3 of 4 checks passed
@mattleibow
mattleibow deleted the dev/native-dep-skill-versions-txt-step branch June 22, 2026 22:53
@github-actions

Copy link
Copy Markdown
Contributor

📖 Documentation Preview

The documentation for this PR has been deployed and is available at:

🔗 View Staging Site
🔗 View Staging Docs
🔗 View Staging Gallery (Blazor)
🔗 View Staging Gallery (Uno Platform)
🔗 View Staging SkiaFiddle

This preview will be updated automatically when you push new commits to this PR.


This comment is automatically updated by the documentation staging workflow.

@mattleibow mattleibow added this to the 4.150.0-preview.2 milestone Jun 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant