Skip to content

Update rules_swift to 4.3.0 - #23303

Merged
jketema merged 1 commit into
mainfrom
jketema/swift-rules
Dec 1, 2026
Merged

jketema merged 1 commit into
mainfrom
jketema/swift-rules

Conversation

@jketema

@jketema jketema commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@jketema jketema added the depends on internal PR This PR should only be merged in sync with an internal Semmle PR label Nov 30, 2026
@jketema
jketema marked this pull request as ready for review November 30, 2026 18:18
@jketema
jketema requested review from a team as code owners November 30, 2026 18:18
Copilot AI adaptive review requested due to automatic review settings November 30, 2026 18:18

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The change spans interacting Linux/macOS Swift toolchain, SDK discovery, runtime-linking, and dependency updates that require unavailable upstream artifacts and representative cross-platform Bazel builds to validate.

No open issues 🎉

What changed in this PR

Updates the repository’s patched rules_swift Bazel dependency from 4.2.2 to 4.3.0, including refreshed registry metadata and compatibility patches for Swift toolchain registration and static runtime handling.

Changes:

  • Bumps the root and registry module dependency to 4.3.0-codeql.1.
  • Adds updated upstream archive metadata, dependency information, and patch checksums.
  • Refreshes the custom macOS toolchain and external static runtime patches.
  • Removes the obsolete 4.2.2 source metadata.
File Description
MODULE.bazel Updates the root rules_swift dependency to version 4.3.0.
misc/​bazel/​registry/​modules/​rules_swift/​metadata.json Registers the patched 4.3.0-codeql.1 module version.
misc/​bazel/​registry/​modules/​rules_swift/​4.3.0-codeql.1/​source.json Defines the 4.3.0 upstream archive and patch integrity metadata.
misc/​bazel/​registry/​modules/​rules_swift/​4.3.0-codeql.1/​patches/​register_downloaded_macos_toolchain.patch Updates downloaded macOS SDK discovery and toolchain registration for the new upstream release.
misc/​bazel/​registry/​modules/​rules_swift/​4.3.0-codeql.1/​patches/​module_dot_bazel_version.patch Sets the embedded patched module version to 4.3.0-codeql.1.
misc/​bazel/​registry/​modules/​rules_swift/​4.3.0-codeql.1/​patches/​external_static_runtime.patch Adapts external static Swift runtime support to the 4.3.0 source layout.
misc/​bazel/​registry/​modules/​rules_swift/​4.3.0-codeql.1/​MODULE.bazel Provides the patched module definition with the updated bazel_features dependency.
misc/​bazel/​registry/​modules/​rules_swift/​4.2.2-codeql.1/​source.json Removes the superseded 4.2.2 source metadata.

Review effort: Lite (adaptive)

@paldepind paldepind left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change looks good to me. I see some CI failures with

ERROR: Error computing the main repository mapping: in module dependency chain <root> -> rules_swift@4.2.2-codeql.1: module rules_swift@4.2.2-codeql.1 not found in registries

Is this expected?

@andersfugmann andersfugmann left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jketema

jketema commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

I see some CI failures

You mean: you see CI completely failing 😂 . Yeah, this is expected, note that this is half of a pair of PRs (this one and an internal one).

@jketema
jketema merged commit ff6b2a5 into main Dec 1, 2026
28 of 85 checks passed
@jketema
jketema deleted the jketema/swift-rules branch December 1, 2026 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

depends on internal PR This PR should only be merged in sync with an internal Semmle PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants