Skip to content

GALA 0.93.2

Choose a tag to compare

@martianoff martianoff released this 25 Oct 19:38
· 925 commits to master since this release
4891973

GALA 0.93.2 Release Notes

Released: 2026-10-25

Highlights

A patch release with two type fixes. A declared Tuple[A, B, C] now unifies with a tuple literal. A type from a package that a library imports under an alias now reaches other files under the package's name, so code using the library compiles.

Bug Fixes

  • Tuples of three or more (#868, 2a147b98): Tuple[A, B, C] is read as Tuple3[A, B, C], the type a tuple literal of three values has, and likewise up to Tuple10. Before, these failed when a declared tuple met a tuple literal:
    • a match whose arms return each was rejected with a type mismatch;
    • an if-expression mixing them failed with GALA-E0068;
    • an explicit type argument such as None[Tuple[int, int, int]]() generated invalid Go.
  • Types from an aliased import in a library (part of #864, a6396d11): a library file that imports a GALA package under an alias (import cx "pkg/cmdp") recorded the types it wrote as cx.Cmd, an alias that means nothing elsewhere. Files using the library failed with undefined: cx, left field reads like c.Name wrapped in Immutable, and typed lambda results as any. Such types are now recorded under the package's name. This affected gala build, not only Bazel.
    • Code that must spell such a type in Go (a lambda parameter, for one) now imports its package. Under Bazel that package has to be among the target's deps: gala_gazelle 0.4.0 adds it, and hand-written BUILD files list it themselves.

Full Changelog: 0.93.1...0.93.2