Skip to content
This repository was archived by the owner on Nov 10, 2026. It is now read-only.

Clean before release builds and guard on the compiled fallback paths - #310

Merged
piercifani merged 1 commit into
mainfrom
fix/release-clean-build
Oct 23, 2026
Merged

piercifani merged 1 commit into
mainfrom
fix/release-clean-build

Conversation

@piercifani

Copy link
Copy Markdown
Contributor

Follow-up to #309. The 1.9.18 binaries link SkipDriveExternal (2,315 symbols on macOS) but skip android emulator list still fails with Error listing active emulators: SkipDriveExternal not available.

Cause

1.9.18 was built in the same checkout that built 1.9.17. In its .build/out, SkipBuild's objects (AndroidCommand.o and the rest) were still from the 1.9.17 build, when the submodule was missing. Only SkipDriveExternal itself was compiled fresh. #if canImport(SkipDriveExternal) results are not build inputs, so Swift Build never recompiled SkipBuild. The #309 guard counted SkipDriveExternal symbols, which only shows the module was linked, so it passed.

Changes

  • release_skip.sh: swift package clean after swift package update. It removes .build/out and the artifact bundles and keeps the dependency checkouts.
  • build_macos_plugin.sh, build_linux_plugin.sh: replace the symbol count with a check for the messages that only the #if !canImport(SkipDriveExternal) branches compile in (without SkipDriveExternal, SkipDriveExternal not available, SkipDrive not linked).

Verification

  • The new guard fails all six published 1.9.17 and 1.9.18 binaries and passes the 1.9.16 Linux binaries.
  • A DRY_RUN=1 SWIFT_VERSION=6.4.1 ./scripts/release_skip.sh run with these scripts is in progress, and skip android emulator list will be checked on its output.

🤖 Generated with Claude Code

1.9.18 linked SkipDriveExternal but still could not run skip android commands:
the release checkout's build folder kept SkipBuild objects compiled while the
module was missing, and canImport results are not build inputs, so nothing
recompiled them. The symbol-count guard passed because the module itself was
linked. Clean the build before releasing, and fail when the binary contains the
messages that only the #if !canImport(SkipDriveExternal) branches compile in.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cla-bot cla-bot Bot added the cla-signed label Oct 23, 2026
@piercifani
piercifani merged commit 787d56d into main Oct 23, 2026
6 of 7 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant