feat(registry): tag-based versioning with # ref syntax and CDN-bypass#151
Open
feat(registry): tag-based versioning with # ref syntax and CDN-bypass#151
# ref syntax and CDN-bypass#151Conversation
- New ref grammar: <workflow>[@<registry>][#<ref>] (was @@Version) - Auto-discover versions from git tags; semver-sort with v-prefix strip - Fall back to default branch HEAD when no tags exist - Any tag/branch/SHA can be pinned via #ref - Drop versions: field from index.yaml (silently ignored for back-compat) - Cache by commit SHA (sha[:12]); mutable refs re-resolve fresh - Atomic cache writes (tempfile.mkdtemp + os.replace) - Index loads always resolve ref->SHA, fetching at /<sha>/index.yaml to bypass raw.githubusercontent.com Fastly CDN - registry list/show display 'Latest tags:' footer - Path registries hard-error on non-empty refs - Empty # and multiple @/# are hard errors Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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
Reworks the workflow registry to behave more like a plugin system — versions are auto-discovered from git tags instead of being explicitly listed, refs can pin to any tag/branch/SHA, and stale CDN content is no longer a problem.
Closes the two pain points raised in discussion:
`conductor registry update` doesn't reflect changes immediately — root cause was Fastly's CDN cache on `raw.githubusercontent.com`. Index fetches now resolve the ref to a commit SHA via the GitHub API and fetch from `…//index.yaml`. Unique URL per commit → CDN can't serve stale data. No `--force` flag needed.
Versioning was awkward — required maintainers to enumerate every release in `index.yaml`. Now versions are auto-discovered from the registry repo's git tags, semver-sorted.
New ref grammar
```
[@][#]
```
Hard errors: empty ref after `#`, multiple `#` or `@`, empty workflow name, path registry with a ref.
Behavior changes
Implementation
Tests
Docs updated
Notes for reviewers