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

Initialize the skip submodule for releases and fail builds without SkipDriveExternal - #309

Merged
piercifani merged 1 commit into
mainfrom
fix/release-init-skip-submodule
Oct 23, 2026
Merged

piercifani merged 1 commit into
mainfrom
fix/release-init-skip-submodule

Conversation

@piercifani

Copy link
Copy Markdown
Contributor

The 1.9.17 release binaries (skip-macos.zip and both skip-linux.zip variants) contain no SkipDriveExternal code, so every skip android command fails with Cannot launch android command without SkipDriveExternal.

Cause

Sources/SkipDriveExternal is a symlink into the skip submodule. release_skip.sh ran git submodule update --remote --merge after cd ../skip, the sibling skip repo, which has no submodules. So since f2f5564 the line has been a no-op, and the release relied on the submodule already being populated in the local checkout.

1.9.17 was cut from a checkout where it was not. SwiftPM only warns (ignoring broken symlink, Source files for target SkipDriveExternal should be located under…), builds the target empty, and #if canImport(SkipDriveExternal) in SkipBuild is false. Both swiftbuild and native behave this way. The Swift 6.4 / macos-26 move in skip's release.yml is not the cause: that job runs with DRY_RUN: 1, and Swift 6.4 builds with the submodule present keep the module.

Changes

  • release_skip.sh: git submodule update --init in skipstone, which checks out the pinned commit as CI's submodules: true does. Remove the misplaced line.
  • build_macos_plugin.sh, build_linux_plugin.sh: fail the build when nm finds no SkipDriveExternal symbols in the product.

Verification

  • build_macos_plugin.sh (Xcode Swift 6.4, universal): 2,349 symbols, and bin/skip android emulator list lists the emulator.
  • SWIFT_VERSION=6.4.1 build_linux_plugin.sh: x86_64 2,052, aarch64 2,045, the same counts as 1.9.16.
  • The guard's check on the published 1.9.17 binaries counts 0 for macOS and both Linux variants, so it would have failed that release.

🤖 Generated with Claude Code

…ipDriveExternal

Sources/SkipDriveExternal links into the skip submodule. release_skip.sh ran
`git submodule update` after `cd ../skip`, a repo with no submodules, so it never
populated skipstone's submodule. In a checkout without it, SwiftPM only warns
about the broken symlink and builds SkipRunner without SkipDriveExternal, which
is how the 1.9.17 binaries lost every `skip android` command.

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 d50c5a1 into main Oct 23, 2026
7 checks passed
@piercifani
piercifani deleted the fix/release-init-skip-submodule branch October 23, 2026 15:06
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