Skip to content

feat(init): default spectre_version to the binary's SPECTRE version - #58

Merged
jvmakine merged 1 commit into
mainfrom
juho/init-spectre-version
Oct 23, 2026
Merged

jvmakine merged 1 commit into
mainfrom
juho/init-spectre-version

Conversation

@jvmakine

Copy link
Copy Markdown
Collaborator

A template that builds SPECTRE into an image, like ruby2jsc's mirror, needs a SPECTRE version to pin. The CLI's own version is the natural default, and passing it by hand invites a mismatch.

spectre init now sets the spectre_version variable from the build info, unless --var spectre_version=... is passed. It uses the version of the block/spectre module, whether that is the main module (the OSS binary) or a dependency (a custom binary such as squareup's). A release gives its tag, such as v1.1.0. An untagged build gives its commit. A local replace or a (devel) build gives nothing, so the template asks for the flag.

🤖 Generated with Claude Code

A template that builds SPECTRE into an image needs a version to pin, and the
one the CLI is built from is the one its user is running. Passing it by hand
was an easy way to get a mismatch.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@jvmakine
jvmakine requested a review from alecthomas as a code owner October 23, 2026 00:17
@jvmakine
jvmakine merged commit a5c7db9 into main Oct 23, 2026
6 checks passed
@jvmakine
jvmakine deleted the juho/init-spectre-version branch October 23, 2026 00:29
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