Repository navigation
Conversation
libxml2 2.14 changed its soname from libxml2.so.2 to libxml2.so.16, and distributions that ship it, such as Ubuntu 26.04, no longer provide libxml2.so.2. The Linux binaries link it through FoundationXML, so they fail to start there. Build the dynamic binary a second time on ubuntu-26.04 runners and publish it as swiftlint_linux_{amd64,arm64}_libxml2-16.zip beside the existing archives, which stay as they are.
wei18
added a commit
to wei18/Sudoku
that referenced
this pull request
Nov 13, 2026
… libxml2.so.2 (#1117) * ci(lint): pin the SwiftLint job to ubuntu-24.04 while SwiftLint links libxml2.so.2 The ubuntu-26.04 runner image (ubuntu-latest) dropped libxml2.so.2 in its 2026-11-01 build, and every released SwiftLint Linux binary (0.57 through 0.65.1) dynamically links it, so `Lint / SwiftLint (changed files)` dies before linting a single file on every PR. Neither an apt install (26.04 ships only libxml2.so.16) nor a SwiftLint bump (realm/SwiftLint#6967, binaries built against .so.16, is still unreleased) can fix it today; upstream's own workaround is ubuntu-24.04, which still ships libxml2.so.2. Scoped to the swift-lint job only; the exit condition (bump the pin and go back to ubuntu-latest once #6967 ships) is recorded next to the pin. Closes #1116 Co-Authored-By: Claude Fable 5.1 <[email protected]> * ci(lint): temporary Swift touch to exercise swiftlint on ubuntu-24.04 (probe, reverted next) The swift-lint job only runs swiftlint when the PR changes a Swift file; the pin alone would be "proven" by a skipped step. This commit touches one test file so the job lints it on the 24.04 image. Reverted immediately after the run; the run URL is the evidence on #1116. part of #1116 Co-Authored-By: Claude Fable 5.1 <[email protected]> * ci(lint): revert the temporary Swift touch (probe done) The probe run proved swiftlint 0.57.1 executes on the ubuntu-24.04 image with a real Swift file in the change set: https://github.com/wei18/Sudoku/actions/runs/42824234021/job/129857196153 part of #1116 Co-Authored-By: Claude Fable 5.1 <[email protected]> --------- Co-authored-by: Claude Fable 5.1 <[email protected]>
2 tasks done
This branch has not been deployed
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.
Resolves #6966.
libxml2 2.14 changed its soname from
libxml2.so.2tolibxml2.so.16. Distributions that ship it no longer providelibxml2.so.2; Ubuntu 26.04 (nowubuntu-lateston GitHub Actions) is one of them. The dynamically linked Linux binaries link it through FoundationXML, so they exit before linting:swiftlint-staticruns there, but it disables the rules that need SourceKit.This PR builds the dynamic binary a second time on the
ubuntu-26.04andubuntu-26.04-armrunners and publishes the results asswiftlint_linux_amd64_libxml2-16.zipandswiftlint_linux_arm64_libxml2-16.zip. The existing archives are unchanged, so nothing that downloads them by name is affected. The assets are named after the libxml2 soname rather than the Ubuntu release, because the same binary fits any distribution that shipslibxml2.so.16.Changes:
release.yml: two morebuild-linuxmatrix entries, and the new artifacts moved into place.libxml2-devis installed explicitly, since the 26.04 image is not guaranteed to have it.Makefile:zip_linux_releasepackages the two binaries, andcleanremoves them.tools/create-github-release.sh: uploads the two archives..github/actionlint.yml: listsubuntu-26.04andubuntu-26.04-armas known runner labels, because actionlint 1.7.12 does not know them yet and the lint job would otherwise fail.Not covered:
SwiftLintBinary.artifactbundle.zipstill carries only thelibxml2.so.2build. Artifact bundle variants are selected by target triple, which cannot tell the two libxml2 versions apart.Verification: the release workflow runs only on release, so I ran the same build on a fork (https://github.com/d-date/SwiftLint/actions/runs/41817195656). On
ubuntu-26.04andubuntu-26.04-arm,make spm_linux_buildproduced a binary whoseNEEDEDlistslibxml2.so.16. It ranswiftlint version, and it reported a custom rule that usesmatch_kinds, which needs SourceKit.ubuntu-24.04was run alongside it as a control and still yieldslibxml2.so.2.