Repository navigation
superdevkit stops when it was installed from other sources than its kit - #103
Merged
Merged
Conversation
installDist writes sources.stamp, the SHA-256 of the sources that go into the jars (dampf's, the command's, the Gradle files). When the installed superdevkit builds a project whose kit is a repository, it compares the stamp with the repository's sources and stops with "run ./gradlew installDist in <kit>" when they differ, instead of compiling today's library and examples with an older dampf. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
skerkewitz
approved these changes
Nov 30, 2026
skerkewitz
approved these changes
Nov 30, 2026
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What
The installed
superdevkitnow notices when it's older than the repository it builds with, and stops with a clear message:Before, an outdated installation compiled today's library and examples with an old dampf. It failed on whatever was new, with errors pointing at the game's code:
'music_bank' is not declaredforexamples/music, an internal compiler error for gruft, an unknown key for modes.How
./gradlew installDistwritessources.stampinto the installation. It's the SHA-256 of the sources that go into the jars:cli/src/main,compiler/src/mainand the four Gradle files, each file as its path and bytes, in path order.SourceStamp, a new class, computes it; asourceStampGradle task runs it.Kit.ofcompares that stamp with the kit folder's sources when all three hold:lib/isn't part of the stamp: the build reads it from the kit folder as it is, so editing the library needs no reinstall.A check on the version alone would have caught your 0.7.4 installation, but not a week-old installation of
develop. That one carries the same version as today's.Verified
./gradlew build: 1297 tests, 0 failed. New:SourceStampTest, 4 tests:lib/file doesn't count;build/install/superdevkit/bin/superdevkit build snes examples/hellobuilds. After one line added todampf/Main.javait stops with the message above; after reverting the change it builds again.What follows
README.mdon the stamp../gradlew installDistonce, the check covers it. Your current installation has no stamp, so it isn't checked until then.🤖 Generated with Claude Code