feat: teach the public v1 beta
Resolve the immutable Beta 1 runtime first, verify the exact compiler identity on Linux and Windows, and commit generated outputs from the released ABI. Material implementation and review were assisted by OpenAI Codex. Cole Speelman reviewed the public tutorial and accepts human responsibility. Signed-off-by: Cole Speelman <crspeelman@gmail.com>
This commit is contained in:
+15
-4
@@ -7,12 +7,23 @@ repo_root=$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)
|
||||
cd "$repo_root"
|
||||
|
||||
himesan_bin=${HIMESAN_BIN:-himesan}
|
||||
expected_version=v1.0.0-beta.1
|
||||
if ! command -v "$himesan_bin" >/dev/null 2>&1; then
|
||||
echo "himesan was not found; install it from the neighboring Sandwich Hime checkout or set HIMESAN_BIN" >&2
|
||||
echo "himesan was not found; install v1.0.0-beta.1 or set HIMESAN_BIN" >&2
|
||||
exit 1
|
||||
fi
|
||||
if [[ ! -f go.work ]]; then
|
||||
echo "go.work is missing; follow the README preview bridge commands first" >&2
|
||||
|
||||
export GOWORK=off
|
||||
|
||||
actual_version=$("$himesan_bin" version | awk 'NR == 1 { print $2 }')
|
||||
if [[ "$actual_version" != "$expected_version" ]]; then
|
||||
echo "himesan version is $actual_version; expected $expected_version" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
runtime_version=$(go list -m -f '{{.Version}}' gamertan.com/sandwich-hime/sando)
|
||||
if [[ "$runtime_version" != "$expected_version" ]]; then
|
||||
echo "sando runtime version is $runtime_version; expected $expected_version" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@@ -53,4 +64,4 @@ if grep -Eq '^gamertan\.com/sandwich-hime$|^gamertan\.com/sandwich-hime/(cmd|int
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "verified deterministic generation, tests, vet, build, and runtime-only production dependencies"
|
||||
echo "verified Beta 1 identity, deterministic generation, tests, vet, build, and runtime-only production dependencies"
|
||||
|
||||
Reference in New Issue
Block a user