Changelog
All notable changes to event-spec are recorded here.
The format follows Keep a Changelog 1.1.0, and this project adheres to Semantic Versioning.
Each released version gets a ## [x.y.z] - YYYY-MM-DD section. Unreleased work lands
under ## [Unreleased] in the pull request that makes the change, and is promoted to a
version heading in a separate pull request just before the release is dispatched.
[Unreleased]
Breaking
-
event-spec pullno longer passesGIT_*environment variables through to git. Every variable whose name starts withGIT_is removed from the environment before git starts, so an inheritedGIT_DIRcan no longer retarget your checkout, andGIT_SSH_COMMAND(or the olderGIT_SSH),GIT_ASKPASS,GIT_PROXY_COMMAND,GIT_EXTERNAL_DIFF,GIT_EXEC_PATHandGIT_CONFIG_COUNTwithGIT_CONFIG_KEY_n/GIT_CONFIG_VALUE_ncan no longer decide which program git executes. If you authenticate or configure git through one of those variables today, move the setting into your git config:Instead of Use GIT_SSH_COMMAND="ssh -i ~/.ssh/deploy_key", or the olderGIT_SSHgit config --global core.sshCommand "ssh -i ~/.ssh/deploy_key"GIT_ASKPASS=/path/to/askpassgit config --global core.askPass /path/to/askpassGIT_PROXY_COMMAND=/path/to/proxygit config --global core.gitProxy /path/to/proxy— applies togit://remotes only; an HTTPS remote needsgit config --global http.proxy http://host:portinsteadGIT_EXTERNAL_DIFF=/path/to/diffgit config --global diff.external /path/to/diff— never affects a pull, which only runsclone,fetchandcheckoutGIT_CONFIG_COUNT=1withGIT_CONFIG_KEY_0=<key>/GIT_CONFIG_VALUE_0=<value>git config --global <key> <value>GIT_EXEC_PATHhas no git config equivalent: git accepts it only as the--exec-pathoption, whichevent-specnever passes. To run a non-default git, put it first onPATH.If the value is a credential, do not persist it. The usual reason to reach for
GIT_CONFIG_KEY_nin CI ishttp.extraHeader=Authorization: Bearer <token>orurl.https://<token>@host/.insteadOf, andgit config --globalwrites that token in plaintext to~/.gitconfig— created mode 0644, echoed bygit config --list, and routinely swept up by dotfile backups, image layers and CI caches — plus a copy in your shell history. That is worse than the environment variable it replaces. Put secrets in acredential.helper, or in a.git/configyou do not commit, and keep--globalfor settings that are not themselves credentials.Two values are now set for you instead of inherited:
GIT_TERMINAL_PROMPT=0, so a pull fails fast rather than blocking on a credential prompt, andGIT_ALLOW_PROTOCOL=file:git:http:https:ssh, so a registryremote:cannot select a command-executing transport such asext::. When a pull fails and one of the dropped variables was set, the error names it, so a droppedGIT_SSH_COMMANDdoes not look like a broken key. Your git config is untouched:url.*.insteadOf,core.sshCommandandcredential.helperin~/.gitconfigor the repository's.git/configall still apply.Details: git registry docs, issue #184, PR #197.
Added
CHANGELOG.mditself, plus a release workflow that puts the released version's section at the top of the GitHub Release body. (issue #205)
Fixed
-
event-spec pullkept the cache frozen whenregistry.refnamed a branch. Aregistry.refholding a branch name was checked out as a local branch, and the local branch a shallow clone creates is never advanced by a fetch: every later pull printed✓ Indexed N event(s).and indexed the same commit as the first one, forever. On a fresh cache the opposite half of the bug applied — the clone followedregistry.branchand ignoredregistry.refentirely, so a pin to a commit or tag was silently not honoured.registry.refis now resolved against the remote —refs/tags/<ref>, thenrefs/remotes/origin/<ref>, then<ref>as a commit SHA — and checked out detached, so a branch-named ref follows the remote branch while a commit or tag still pins. The tag is tried first, which is git's own precedence for a bare name. All three forms are looked up and they all have to agree: if any two resolve to different commits the pull fails and names every SHA it found, so nobody who can push a branch can take over a tag pin or a commit pin — git allows a branch named with a full 40-hex SHA, and such a branch used to win over the commit itself. Two of one name at the same commit still resolve normally, and annotated tags are compared by the commit they point at. The cache is never left on a local branch. Nothing to change in your config: arefnaming a branch now does what it looked like it did.registry.branchremains the plainer way to say "follow a branch".Four consequences worth knowing. Setting
registry.refmakes the first clone a full one, because a--depth 1clone holds neither an older commit nor any tag — a slower first pull on a large tracking-plan repo, and that repo's whole history on disk in the cache. A pinned pull also fetches the one tag itsregistry.refnames, so the tag a pin names is as fresh as the branches beside it; an upstream tag that moved cannot retarget a cache that already has it, and no other tag is fetched, so a ref-less cache stays shallow and a tag moving on the remote cannot affect a pull that does not name it. Aregistry.refthat resolves to two different commits is refused with every SHA named rather than resolved to one of them, which means anyone who can push a ref to the tracking plan can stop your pulls: a tag namedmainis enough to block every consumer whoseregistry.refismain, where the same value underregistry.branchcannot be blocked at all, so preferregistry.branchwhen you mean to follow a branch. Recovering from a refusal takesevent-spec pull --forceas well as removing the extra ref upstream, because a pull prunes neither branches nor tags. And when a ref cannot be found at all, the error asks the remote before recommending anything: it saysevent-spec pull --forceonly when the remote really does have that ref and the cache does not, and otherwise says the remote has no such tag or branch and prints thegit ls-remotecommand that lists what it does have — re-cloning never fixes a typo. Aregistry.reforregistry.branchthat is not a name the remote could have —HEAD,main~2,v1.4.0^{},refs/heads/main, anything starting with-— is refused before anything is cloned.Details: git registry docs, issue #211.
Earlier releases
Entries in this file start after v0.4.2. The releases up to and including v0.4.2
(v0.1.1, v0.2.0, v0.4.0, v0.4.1, v0.4.2) were published with auto-generated
notes — a flat list of merged pull request titles — and are deliberately not
backfilled: splitting those titles into Added/Changed/Breaking sections after the fact
would read as recorded history while being reconstruction. For anything released before
this file existed, read the published notes on
the releases page.