Skip to content

v0.4.0

Choose a tag to compare

@kelp kelp released this 28 Mar 22:57
· 847 commits to main since this release
cdeab6b

Added

  • Fuzzy search: gale search matches against a
    registry index by name and description. Scores
    by exact, prefix, substring, and subsequence match.
  • Lockfile pinning: gale.lock stores version +
    SHA256 per package. Written on install and update.
    Sync verifies SHA256 against lockfile.
  • .tool-versions compatibility: gale sync falls
    back to .tool-versions when no gale.toml exists.
    Maps asdf/mise names (golang→go, nodejs→node).
  • Build dep library/header resolution: build steps
    now get LIBRARY_PATH, C_INCLUDE_PATH, and
    PKG_CONFIG_PATH from installed build deps. Recipes
    with build = ["bzip2"] can link -lbz2 without
    explicit -L flags.
  • Binary index separation: .binaries.toml files
    alongside recipes. GHCR URLs derived at runtime.
    Backward compatible with inline [binary.*].
  • Lint: warns on missing build deps (go build
    without build = ["go"], etc.). Validates
    platform strings.
  • Runtime deps installed at build time. Recipes no
    longer need to list deps in both build and
    runtime.
  • Transitive dep resolution with cycle detection.
    If A→B→C, all three paths in build env.
  • Dynamic linker paths: LD_LIBRARY_PATH (Linux),
    DYLD_FALLBACK_LIBRARY_PATH (macOS) set from
    build deps.
  • Recipe platforms field: restrict builds to
    specific platforms. gale build skips gracefully.
  • Recipe verify field: CI can read custom verify
    commands instead of guessing --version/--help.
  • Platform variables: ${OS}, ${ARCH},
    ${PLATFORM} available in build steps.
  • Auto-detect --local: gale build inside a
    recipes repo auto-detects local dep resolution.
  • ${VERSION} build variable: recipe version
    available in build steps alongside ${PREFIX}.
  • Style guide: docs/style-guide.md covering
    writing, documentation, and code conventions.

Changed

  • Man page rewritten in OpenBSD mandoc style with
    EXAMPLES section.

  • README rewritten: concise reference, practical
    examples, correct PATH setup.

  • Build functions accept *BuildDeps struct instead
    of variadic path strings. Carries both bin dirs
    (for PATH) and store dirs (for lib/include paths).

  • lockfilePath() and writeConfigAndLock() shared
    helpers replace duplicated lock path computation
    across install, update, and sync.

  • Sync uses resolveVersionedRecipe instead of
    inlining the versioned recipe resolution logic.

  • InstallBuildDeps refactored: public wrapper +
    private recursive installDepsInner with shared
    seen map for cycle detection and dedup.

Fixed

  • installFromGit --local now uses local resolver
    for build dep resolution. Previously hardcoded
    the registry, ignoring the --local flag for
    transitive deps.
  • Transitive deps' lib/include/bin paths now
    available in build env (previously only direct
    deps' paths were returned).
  • Lint: cargo install no longer falsely triggers
    missing go dep warning.
  • gale lint skips .binaries.toml and .versions
    files.