Repository navigation
v0.14.0
Architectural review work — every Critical, High, Medium,
and Observation finding from the 2026-04-18 review is now
closed. See gale-project/TODO.md for the inventory.
Added
[[repos]]entries in~/.gale/config.tomlare now
consulted by the install resolver in priority order
(lowest number wins) before falling back to the default
registry.gale repo add <name> <url>already cloned
and persisted these but the install path ignored them.
gale install <pkg>walks tap caches first; missing
cache dirs are skipped silently. Versioned fetches
(pkg@1.2.3) still go through the registry only.- Recipe
[binary.<platform>]sections accept a
trust = "sigstore" | "sha256-only"field (default
"sigstore"). Default policy rejects non-ghcr.io
URLs before fetch with a message naming the field, the
current URL, and the opt-out."sha256-only"is the
required opt-in for upstream tarball mirrors that
don't carry our Sigstore identity. - Recipe
[dependencies]accepts inline-table form with
aversionconstraint:
runtime = [{name = "openssl", version = ">=3.6.0-1"}].
Constraint is enforced at install time — a violated
pin fails the install with the dep, resolved version,
required constraint, and parent recipe all named.
Bare-string deps remain unconstrained. - Registry recipe fetches use ETag-based conditional
GETs against a content-addressed cache at
~/.gale/cache/registry/. First fetch populates
<sha256(url)>/body+<sha256(url)>/etag;
subsequent fetches sendIf-None-Matchand return the
cached body on 304. Cache hit returns the exact bytes
the server would have returned, so any future
signature-verification layer sees identical input. - Mirror fallback now logs the URL that successfully
served the bytes (not just the URLs that were tried).
Fixed
- Build environment no longer leaks host
HOME,
TMPDIR,CFLAGS,CC, orCXXinto recipe builds.
Each step gets per-build tempdirs under
~/.gale/tmp/, and unknown env keys no longer fall
back to the host. Recipes that need a specific
compiler setCC=ccinline; the declared
toolchain = "llvm"can no longer be bypassed by a
hostCC=gcc-11. - Source builds are now reproducible: tarball mtimes
derive from[source].released_at(parsed as
YYYY-MM-DD UTC) instead of the wall clock, so two
back-to-back builds of the same recipe produce
byte-identical archives.touchAllnow propagates
Walk errors exceptENOENT; broken symlinks remain
tolerated for upstream test fixtures. - Generation rebuild fails loudly when a referenced
store directory is missing.populateGeneration's
silentcontinueandsymlinkDir's silent srcDir
skip are gone; a new validate-before-swap step stats
every symlink target beforecurrentflips. Catches
concurrentgale gcor manualrm -rfof a store
dir between populate and swap.gale synckeeps the
lenient path (one failed install in a batch doesn't
block the rest). - The installer holds a store-rooted generation lock
around tarball extract, prefix fixups, farm populate,
.gale-deps.tomlwrite, and store-dir rename. A
concurrentgale syncrebuilding the generation can
no longer walk a half-installed package. - Binary install fallback to source build now surfaces
errors fromos.RemoveAll/os.MkdirAllon the
store dir. A wedged store gives a real wrapped error
message instead of letting the downstream tar
extraction fail confusingly. RestorePrefixPlaceholderskips files whose first
512 bytes contain a null byte. Prevents a binary
file containing the placeholder string from being
silently mangled during prefix restore.- Recipe parser rejects unknown fields under
[package],[source], and[binary.<platform>].
source.sha265typo (which used to silently parse)
now fails closed with"unknown recipe field(s): source.sha265". - Concurrent
gale gc+ install race tightened in
store.resolveVersion: oneos.ReadDirinstead of
threeos.Stats + aReadDir. A single readdir
syscall is atomic on supported platforms, so a
partial removal mid-chain is no longer observable. gale remove galeis refused before touching config
or store. Pointer to the bootstrap script instead.
Changed
- Tap recipes (resolved through configured
[[repos]])
inheritsource.trustfrom the recipe itself;
auto-deriving a per-tap GHCR base from the repo URL
is deferred. Tap recipes that want binary-first
installs must declare inline[binary.<platform>]
sections. gale repo listoutput sorts by priority so the user
sees the install resolver's order.loadAIClientmoved out ofsearch.go(search hasn't
used the AI client since fuzzy match landed). Now
lives withcreate_recipe.go, its only consumer.
search.gono longer pulls ininternal/ai.
Internal
- End-to-end regression suite under
gale/integration/
expanded to 47 testscript scenarios driving the real
galebinary against a fake GHCR + fakeghshim.
Matrixed acrossmacos-26andubuntu-latestin CI
(Integration (Tier A)step). Coverage spans:- install: binary, source, cached, sha-mismatch,
not-found, dry-run, flag-conflict, source-cache-hit,
--recipelocal file,--recipeslocal dir, install
via configured tap. - sync / update: install-from-config, no-op,
--buildflag forces source, lockfile refresh on
sha change, removed-symlink cleanup, dry-run,
outdated-after-rev-bump, pin-blocks-update. - resolver: explicit revision, update after rev
bump, store bare-vs-canonical layout, configured-tap
precedence over registry. - gc: reaps old revisions, retains runtime deps.
- generations: list, rollback, missing-store-dir
error path. - remove: basic, then-reinstall, gale-self-guard.
- add: with/without install, multiple packages.
- other CLI: env, hook direnv, info, list, run,
which, doctor healthy, init project, config scope,
config version format. - architectural-review pins: build env scrubs
hostHOME(per-build~/.gale/tmp/gale-home-*),
build env ignores hostCC/CXX, deterministic
archive output (build-twice + cmp), default
trust = "sigstore"rejects non-GHCR URLs, dep
constraint violation fails install with the right
message, recipe parser rejects unknown
[package]/[source]fields, gale-self-remove
guarded.
- install: binary, source, cached, sha-mismatch,
golangci-lint run ./...reports 0 issues. Five
remaining false positives in trusted-path code (the
gale runexec resolver and the integration test
scaffolding) carry inlinenolintrationale matching
the pattern ininternal/build/internal/download.