Skip to content

new(SwiftGen): code generator for Swift project resources#13128

Open
tannevaled wants to merge 1 commit into
pkgxdev:mainfrom
tannevaled:new/swiftgen
Open

new(SwiftGen): code generator for Swift project resources#13128
tannevaled wants to merge 1 commit into
pkgxdev:mainfrom
tannevaled:new/swiftgen

Conversation

@tannevaled
Copy link
Copy Markdown
Contributor

Summary

Replaces the vendored prebuilt zip for github.com/SwiftGen/SwiftGen with a source build via Swift Package Manager, in line with the no-vendoring rule.

  • swift build --configuration release --disable-sandbox produces both the swiftgen executable and the sibling SwiftGen_SwiftGenCLI.bundle (Stencil templates).
  • Both are installed into bin/ so SwiftPM's Bundle.module resolves at runtime (matches Homebrew's rake cli:install task).
  • Darwin-only (pantry's swift.org toolchain is darwin-only).
  • Build depends on swift.org: '*' (Package.swift declares swift-tools-version 5.5; any pantry swift works).
  • Companion of the recently-landed swiftly recipe (new(swiftlang.org/swiftly): Apple-official Swift toolchain version manager #13126); SwiftGen is the major Swift resource code generator and analog of the already-pantried mac-cain13/R.swift.

Test plan

  • CI darwin/aarch64 builds from source
  • CI darwin/x86-64 builds from source
  • swiftgen --version reports the tag
  • swiftgen template list succeeds, proving the resource bundle is found at runtime

Replace the vendored prebuilt zip with a source build via Swift Package
Manager. Installs both the swiftgen executable and its sibling
SwiftGen_SwiftGenCLI.bundle (Stencil templates) so Bundle.module resolves
at runtime. Darwin-only (pantry's swift.org is darwin-only).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
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.

1 participant