117 Commits

Author SHA1 Message Date
Michael Stapelberg
f354e13fdf packer: get host fallback from instance hostname, not update host
The instance hostname is the logical hostname of the instance, e.g. consrv,
whereas the update hostname is the way to cross the network to get to said
instance, e.g. consrv.monkey-turtle.ts.net (on port 2345).
2023-01-15 16:55:25 +01:00
Michael Stapelberg
5e5fb5cf29 packer: use the httpclient package directly 2023-01-15 16:26:10 +01:00
Michael Stapelberg
4f93af68c8 packer: set HTTP(S)Port fallback values after host-specific fallback 2023-01-15 16:15:42 +01:00
Michael Stapelberg
e11eeb6a52 localtime: document why time/tzdata does not help 2023-01-15 14:12:11 +01:00
Michael Stapelberg
a84f008488 identify gokrazy packer vs. gok in log output 2023-01-10 20:41:41 +01:00
Michael Stapelberg
8f9863a4c2 Config.Update.Hostname: fall back to Config.Hostname if empty 2023-01-07 18:59:26 +01:00
Michael Stapelberg
b169c0894c use two dashes for flags in error messages
That way, they work for cobra (gok) and Go flag parsing (gokr-packer).
2023-01-07 18:50:11 +01:00
Michael Stapelberg
5b3aa31300 populate PackageConfig for packer logic / writing config.json 2023-01-07 16:16:46 +01:00
Michael Stapelberg
496c018caf remove Env 2023-01-07 16:01:39 +01:00
Michael Stapelberg
d4fa52f791 uppercase HTTP(S) 2023-01-07 16:01:39 +01:00
Michael Stapelberg
a2832b7d25 move left-over flags 2023-01-07 16:01:39 +01:00
Michael Stapelberg
e8957193c6 implement gok new 2023-01-07 16:01:39 +01:00
Michael Stapelberg
492ee69a2e wire up gok version 2023-01-07 16:01:39 +01:00
Michael Stapelberg
86312ca8d8 move config package to gokrazy/internal 2023-01-07 16:01:39 +01:00
Michael Stapelberg
64966b412e make package config overrideable in config.json
related to https://github.com/gokrazy/gokrazy/issues/147
2023-01-07 16:01:39 +01:00
Michael Stapelberg
038a9233cf add gok overwrite subcommand 2023-01-07 16:01:39 +01:00
Michael Stapelberg
434e942c97 refactor packer code into internal/packer, add gok update entrypoint
related to https://github.com/gokrazy/gokrazy/issues/147
2023-01-07 16:01:35 +01:00