heph: pin RUSTUP_TOOLCHAIN=stable for build + self-update
The launchagent and ansible run without mise activation, so a bare cargo/rustc shim falls back to rustup's default toolchain — which lagged heph's rust-version floor (1.89) on both indri (1.87) and gilbert (1.84), silently failing the build. Pin the channel explicitly in the bootstrap env and the plist. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
82c37e0f78
commit
dc9a951eb2
4 changed files with 17 additions and 1 deletions
|
|
@ -15,6 +15,13 @@ heph_repo_url: https://forge.eblu.me/eblume/hephaestus.git
|
|||
heph_bin_dir: /Users/erichblume/.cargo/bin
|
||||
heph_binary: "{{ heph_bin_dir }}/hephd"
|
||||
|
||||
# rustc/cargo here are rustup shims. The bare (non-mise) environment that the
|
||||
# launchagent and ansible run in falls back to rustup's *default* toolchain,
|
||||
# which can lag behind heph's rust-version floor (Cargo.toml: 1.89). Pin the
|
||||
# channel explicitly so both the bootstrap build and unattended self-update
|
||||
# always use a current toolchain regardless of the host's rustup default.
|
||||
heph_rust_toolchain: stable
|
||||
|
||||
heph_data_dir: /Users/erichblume/.local/share/heph
|
||||
heph_db: "{{ heph_data_dir }}/heph.db"
|
||||
heph_socket: "{{ heph_data_dir }}/hephd.sock"
|
||||
|
|
|
|||
|
|
@ -38,6 +38,7 @@
|
|||
heph hephd
|
||||
environment:
|
||||
PATH: "{{ heph_bin_dir }}:/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin"
|
||||
RUSTUP_TOOLCHAIN: "{{ heph_rust_toolchain }}"
|
||||
when: not heph_binary_stat.stat.exists
|
||||
changed_when: true
|
||||
notify: Restart heph
|
||||
|
|
|
|||
|
|
@ -37,6 +37,10 @@
|
|||
<string>{{ heph_bin_dir }}:/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin</string>
|
||||
<key>HOME</key>
|
||||
<string>/Users/erichblume</string>
|
||||
<!-- Pin the rustup channel: the launchagent runs without mise, so a bare
|
||||
cargo shim would otherwise use rustup's (stale) default toolchain. -->
|
||||
<key>RUSTUP_TOOLCHAIN</key>
|
||||
<string>{{ heph_rust_toolchain }}</string>
|
||||
</dict>
|
||||
<key>StandardOutPath</key>
|
||||
<string>{{ heph_log_dir }}/mcquack.heph.out.log</string>
|
||||
|
|
|
|||
|
|
@ -43,7 +43,11 @@ hephd --mode server --http-addr 0.0.0.0:8787 --db ~/.local/share/heph/heph.db
|
|||
reconcile their op-log against.
|
||||
- **Self-update** (10-minute poll) rebuilds `hephd` from the forge when a newer
|
||||
release tag appears (`cargo install --git https://forge.eblu.me/eblume/hephaestus.git`).
|
||||
Indri's Rust toolchain (`~/.cargo/bin`) is on the agent's `PATH` for this.
|
||||
Indri's Rust toolchain (`~/.cargo/bin`) is on the agent's `PATH` for this, and
|
||||
the plist pins `RUSTUP_TOOLCHAIN=stable` — the
|
||||
launchagent runs without mise, so a bare `cargo` shim would otherwise fall back
|
||||
to rustup's *default* toolchain, which can lag behind heph's `rust-version` floor
|
||||
(1.89) and silently fail the build.
|
||||
- **PWA** (`--web-root`) serves the [heph-pwa] mobile shell; Caddy terminates TLS
|
||||
at `heph.ops.eblu.me` so the PWA runs in a secure context (service worker,
|
||||
install-to-home-screen, voice capture).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue