eff585c773cf

fix machine config: host implies remote (local=false) so test-remote renders as ssh; v3.0.9

time
2026-05-30 03:16 UTC · 4 months ago
machine
koh2
parent
a457ce5df838
2 files build.zig.zon+1 −1src/config.zig+4 −0
build.zig.zon+1 −1
@@ -9,7 +9,7 @@99     .name = .nina,1010     // This is a [Semantic Version](https://semver.org/).1111     // In a future version of Zig it will be used for package deduplication.12-    .version = "3.0.8",12+    .version = "3.0.9",1313     // Together with name, this represents a globally unique package1414     // identifier. This field is generated by the Zig toolchain when the1515     // package is first created, and then *never changes*. This allows

view file

src/config.zig+4 −0
@@ -74,6 +74,10 @@7474         m.default = std.mem.eql(u8, val, "true");7575     } else if (std.mem.eql(u8, key, "host")) {7676         m.host = try arena.dupe(u8, val);77+        // A machine with a host is remote unless explicitly marked local. The78+        // Machine struct defaults local=true, so without this a [machine] block79+        // that only sets host/user/ssh_key would render as "local".80+        m.local = false;7781     } else if (std.mem.eql(u8, key, "user")) {7882         m.user = try arena.dupe(u8, val);7983     } else if (std.mem.eql(u8, key, "ssh_key")) {

view file