Skip to content

feat: update snapshot revisions through CLI - #7

Merged
tisonkun merged 3 commits into
mainfrom
codex/atomic-snapshot-updates
Sep 1, 2026
Merged

tisonkun merged 3 commits into
mainfrom
codex/atomic-snapshot-updates

Conversation

@tisonkun

@tisonkun tisonkun commented Sep 1, 2026 •

Copy link
Copy Markdown
Member

Summary

  • add a root-level config.toml with [snapshot.cpp], [snapshot.go], and [snapshot.java] sections containing each upstream repository and pinned commit
  • add snapshots sync to regenerate all snapshot directories from config.toml without changing the config
  • make snapshots update <language> <revision> resolve one branch, tag, or commit to an exact commit ID, update that source's config, and regenerate its snapshots
  • keep snapshots check <language|all> as the read-only verification command
  • report source revision changes in CLI output and update the maintenance documentation

Updates intentionally accept one source at a time instead of a list of language=revision pairs. This keeps partial-failure behavior and review scope straightforward; sync is the single command for applying all currently configured sources.

Repository URLs and commits are configuration data. Tool requirements, generator implementations, and snapshot stability rules remain in Go because changing them changes TCK behavior rather than selecting an upstream source.

No new behavior tests are added. The existing CLI help snapshot is updated for the new command surface.

Validation

  • mise run check
  • GOOS=windows GOARCH=amd64 go build ./...
  • mise run tck -- snapshots check go (0 added, 0 deleted, stable contents unchanged; 41 allowed probabilistic modifications)
  • manually verified snapshots sync --help, snapshots update --help, missing update revision, and rejection of update all main

Signed-off-by: tison <wander4096@gmail.com>
Signed-off-by: tison <wander4096@gmail.com>
Signed-off-by: tison <wander4096@gmail.com>
@tisonkun
tisonkun merged commit 4d88b55 into main Sep 1, 2026
1 check passed
@tisonkun
tisonkun deleted the codex/atomic-snapshot-updates branch September 1, 2026 01:32
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