max
11/12/2025, 3:33 PMAnswer Overflow
11/12/2025, 3:34 PMmel
11/12/2025, 3:36 PMmel
11/12/2025, 3:36 PMmax
11/12/2025, 3:37 PMmel
11/12/2025, 3:37 PMmel
11/12/2025, 3:39 PMstages:
- name: helix
from: docker.io/library/rust
modules:
- type: script
snippets:
- apt-get update && apt-get install -y git # Install git
- git clone https://github.com/helix-editor/helix.git # Clone the helix repo
- cd helix && RUSTFLAGS="-C target-feature=-crt-static" cargo install --path helix-term # Use cargo to install
- mkdir -p /out/ && mv $CARGO_HOME/bin/hx /out/hx && mv runtime /out/ # Move bin and runtime
but i think it only applies to that particular snippet line, so you'll need to use && so that the cd-ed dir affects the rest of the commands in that linemax
11/12/2025, 3:45 PMmel
11/12/2025, 4:20 PMmel
11/12/2025, 4:21 PMmax
11/12/2025, 4:24 PMmax
11/12/2025, 4:27 PMmel
11/12/2025, 4:39 PMmel
11/12/2025, 4:40 PMmel
11/12/2025, 4:42 PMmel
11/12/2025, 4:44 PMmax
11/12/2025, 4:46 PMmel
11/12/2025, 4:47 PMmel
11/12/2025, 4:47 PM- type: script
snippets:
# flex-launcher - clone & build
- git clone https://github.com/complexlogic/flex-launcher.git /tmp/flex-launcher && mkdir -p /tmp/flex-launcher/build
- cd /tmp/flex-launcher/build
- cmake /tmp/flex-launcher -DCMAKE_BUILD_TYPE=Release && make install
- rm -r /tmp/flex-launchermax
11/12/2025, 4:50 PMgmpinder
11/12/2025, 4:56 PMsnippets runs in it's own shell so cd doesn't carry over to the next instructiongmpinder
11/12/2025, 4:57 PMgmpinder
11/12/2025, 4:58 PMfiles/scripts and call that directly using the scripts property. That way everything you do is contained in said scriptgmpinder
11/12/2025, 4:59 PMgmpinder
11/12/2025, 4:59 PMmax
11/12/2025, 5:00 PMmax
11/12/2025, 5:01 PMgmpinder
11/12/2025, 5:01 PMgmpinder
11/12/2025, 5:02 PMgmpinder
11/12/2025, 5:03 PMmax
11/12/2025, 5:03 PMgmpinder
11/12/2025, 5:04 PMgmpinder
11/12/2025, 5:04 PMmax
11/12/2025, 5:06 PM