Releasing v0.1.2 — Build System Fixes

· 2 min read
v0.1.2

This is a small one. Two fixes, both in the build system, neither visible to anyone writing Hew code.

Fixed the Makefile codegen build on macOS. The Makefile was using GNU make syntax that macOS’s BSD make doesn’t support — specifically, the $(shell ...) function inside a target recipe where the expansion order differs between implementations. Worked on Linux, failed silently on macOS, producing a codegen binary that linked against the wrong LLVM. (I keep re-learning that “works on my machine” means “works with GNU make on Linux.” macOS has opinions.)

Fixed release workflow version injection in installer templates. The sed-based version injection was patching the version string in package metadata files — the .deb control file, the RPM spec, the Arch PKGBUILD — but it was matching too greedily. A version placeholder inside a URL got replaced along with the one in the version field, producing download URLs that pointed to https://github.com/hew-lang/hew/releases/download/0.1.2/... instead of https://github.com/hew-lang/hew/releases/download/v0.1.2/.... Missing the v prefix. The fix was anchoring the sed pattern to only match the version field at the start of a line.

That’s it. The kind of release where the CHANGELOG is shorter than the commit messages.