Skip to content

S02-05 - Swift, Contracts and .NET

Purpose: Where the Swift toolchain comes from, the Swift tasks, the contract tools, and the .NET toolchain to come.

The compiler, swift-format, and xcodebuild ship inside Xcode. So the Xcode version is the pin.

Swift tasks iterate packages/*-swift in-shell. So the tasks pick up a new package without changes.

buf is pinned in .mise.toml like every other tool. The plugins it runs are pinned where their language pins dependencies: tool lines in go.mod, and the Swift package’s Package.resolved (S10-tech-stackS10-tech-stack: Technology ChoicesFix languages, libraries, packaging, and repository layout, with the reason for each choice., “Generated contract code”).

  • proto:check runs in the Go job on Linux. Its buf breaking step compares with origin/main, so that job checks out the full history.
  • proto:check-swift runs in the Swift job.

A .NET toolchain is added with the first .NET component (S12-platformsS12-platforms: PlatformsWhich host and guest operating systems Wraith Box targets, how platform-specific code is isolated, what each platform uses, and how wb works inside WSL.). It is pinned in .mise.toml like every other tool, and has its own CI job on a Windows runner.

Status: Active