It seems like it’s undocumented, but just is available in build images (which is great!). But, it’s an oldish version: 1.16.0 (build logs).
That was a fun surprised when I updated my justfile locally, verified it worked, pushed, and the build failed. It turns out I was using newer features than what was available in the build image.
So my request is twofold:
Document just’s availability and version in the docs
Consider updating the version. The feature I was looking for is on 1.23.0, but you could also jump to the latest release.
Build Image Noble has mise installed, so you can just set your build command to mise use -g just && just --version. Seems to work in my test:
7:16:44 PM: $ mise use -g just && just --version
7:16:44 PM: mise just@1.38.0 install
7:16:44 PM: mise Installed binary into /opt/buildhome/.local/share/mise/installs/just/1.38.0/bin/just
7:16:44 PM: mise just@1.38.0 ✓ installed
7:16:44 PM: mise ~/.config/mise/config.toml tools: just@1.38.0
7:16:44 PM: just 1.38.0
Given you already have mise available, it would be great if it were easier to customize the build environment. For instance, honoring a mise.toml in my root directory, which would make it easy to add additional dependencies / language versions.
As it is, if I needed to add further tools, my build command being mise use -g abc && mise use -g def && ... && just build would get unwieldy quickly.
Mise allows you to install multiple tools together:
mise use -g abc def ghi
As for the caching, I believe it’s because the mise install directory is not cached by Netlify by default. You can manually cache and restore all that you want using plugins: Create Build Plugins | Netlify Docs