This repository was archived by the owner on Nov 10, 2026. It is now read-only.
Repository navigation
Clean before release builds and guard on the compiled fallback paths - #310
Merged
Merged
Conversation
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>
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Follow-up to #309. The 1.9.18 binaries link
SkipDriveExternal(2,315 symbols on macOS) butskip android emulator liststill fails withError 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.oand the rest) were still from the 1.9.17 build, when the submodule was missing. OnlySkipDriveExternalitself was compiled fresh.#if canImport(SkipDriveExternal)results are not build inputs, so Swift Build never recompiled SkipBuild. The #309 guard countedSkipDriveExternalsymbols, which only shows the module was linked, so it passed.Changes
release_skip.sh:swift package cleanafterswift package update. It removes.build/outand 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
DRY_RUN=1 SWIFT_VERSION=6.4.1 ./scripts/release_skip.shrun with these scripts is in progress, andskip android emulator listwill be checked on its output.🤖 Generated with Claude Code