feat: add go, rust, and odin language templates#3
Open
skapoor8 wants to merge 8 commits into
Open
Conversation
Odin template with full contract task set (build, test, lint, format no-op stubs, publish via gh-release, version, docker). Uses github:odin-lang/Odin backend (registry short-name is broken); tags are calendar-based dev-YYYY-MM. Guarded clang/LLVM install for CI Linux runners. Single-runner cross-compile with output-existence guard for darwin/windows best-effort targets. No manifest — version.txt is the sole version source. Bats tests clang-gated where compile is required.
skapoor8
commented
Jul 10, 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.
Summary
Adds three new language templates — go, rust, odin — to the scaffold system, each publishing GitHub-release artifacts (and/or git-based install) with no central-registry publish, mirroring the existing
zigtemplate. One commit per template.Templates
core:go; staticCGO_ENABLED=0 GOOS/GOARCHcross-compile of 5 targets →gh release upload; version fromversion.txt(git tag authoritative); lib atsrc/mise_lib_template/+ CLI with-X main.version.cargo install --git … --tag,{ git, tag }deps) as the headline; prebuilt Linux binaries viacrossfor v1 (macOS/Windows use git install);version.txtsynced intoCargo.tomlon release.github:odin-lang/Odintoolchain; guardedclang/LLVM install in theinstalltask; output-guarded cross-compile (Linux reliable, others best-effort);formatis a no-op stub (noodin fmt),lintviaodin check -vet -strict-style.All three keep semantic-release as the release owner (
publishonly uploads assets;publish:rcmints the timestampedvX.Y.Z-rc.<yyyymmddhhmm>.<sha>pre-release) and add no template-specific workflows (GoReleaser/cargo-dist rejected).Tests
Added scaffold/docker/export bats coverage for each template. Full suite
mise run templates:test→ 189/189 locally (all toolchains installed via mise; Odin build/test/lint verified on macOS clang).Notes / follow-ups
build:all-platformsfor rust (cross+Docker) and odin (Linux→macOS/Windows cross-link) are CI/Linux-authoritative — not run on the local macOS host.installtask rather than declaratively.command -v odin/clangso the suite stays green where the toolchain isn't present.Closes PL-related template work (go/rust/odin).