x/crypto 0.59.0 clears govulncheck's module finding GO-2026-5932
(x/crypto/openpgp, which devvm doesn't import; devvm uses only blake2b).
- golang.org/x/crypto: v0.58.0 -> v0.59.0
- golang.org/x/sys: v0.49.0 -> v0.50.0
- golang.org/x/term: v0.47.0 -> v0.48.0
- golang.org/x/text: v0.43.0 -> v0.44.0
- golang.org/x/tools (indirect): v0.51.0 -> v0.52.0
Left as they are: github.com/spf13/pflag v1.0.10 (v1.1.0 is a week
old and changes help output and parse errors), and the indirect
go-md2man v2.0.6, go.yaml.in/yaml/v3 v3.0.5 and the test-only modules.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
pflag 1.1 prints every boolean flag as --flag[=true|false] in the help, with no way to turn
it off, so Dependabot ignores pflag 1.1 and later.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
devvm upgrade [--check] [--to VERSION] [-f/--force] [--json] installs
devvm's newest release the way this devvm was installed, asking first
(upgrade_confirm, answered by --force). upgrade is a top-level exception
in the cli skill: it acts on devvm itself, not this folder's VM, and it's
the name other tools give the verb. It skips the layout check, as a
layout a newer devvm wrote is a reason to run it.
- install.sh's (<prefix>/lib/devvm/<version>/devvm, which
<prefix>/bin/devvm links to): SHA256SUMS and its .minisig over HTTPS,
the signature checked against the key built in from
packaging/minisign.pub (packaging/key.go embeds the folder; no file,
no key, and upgrade_no_key), the archive's SHA-256, unpacked into
lib/.<v>.new.<pid>, run (--version), renamed to lib/<v>, the link
switched atomically (symlink beside, rename over), run again through
the link, rolled back on any failure; then older versions pruned as
install.sh does (kept: the one that ran, any a running process names,
another upgrade's staging folder).
- Homebrew's (a Cellar/devvm/ keg): brew upgrade devvm, asked first,
through the run log; --to refused.
- Anything else: says how it was installed (a checkout build, go
install, a copy elsewhere) and fails.
- Already latest says so; a newest release older than this devvm is
refused even with --force (rollback); --to installs a named one, older
asked about (upgrade_confirm_older). --check and --json install
nothing.
minisign verification is Go's: ed25519 over blake2b.Sum512 for the
default prehashed ED signature (legacy Ed refused), the key ID, the
global signature over signature||trusted comment, and the trusted
comment "devvm <version>" as scripts/release.sh writes it. Verified
against a signature minisign 0.12 made. golang.org/x/crypto v0.58.0
added for blake2b only (approved; depguard allows only
golang.org/x/crypto/blake2b); MVS raised x/text to v0.43.0 and x/tools
to v0.51.0. mise run vuln: no vulnerability reached; the module-level
GO-2026-5932 is x/crypto/openpgp, which devvm doesn't import.
New: internal/upgrade (Detect, Source: Latest, Check for the release
notice to call, Fetch; ParsePublicKey/Verify; Valid/Compare; Upgrader),
internal/upgrade/upgradetest (TLS release server, minisign signer;
tests only, a structure layer), fetch.Resolve (where a HEAD's redirects
end), fetch.Download's size cap (mise's 256 MiB too). Test-build
overrides: DEVVM_REPO_URL, DEVVM_RELEASE_KEY, DEVVM_RELEASE_CA,
DEVVM_TEST_VERSION; script command release_server [-badsig].
Security review (security-audit skill, guidance mode, a fresh reviewer):
- Prerelease order compared suffixes as text (rc.10 < rc.9), which let
an older signed prerelease past the rollback refusal: fixed, semver
precedence, with table cases.
- No cap on the archive download (a host could fill TMPDIR before the
checksum failed): fixed, fetch.Download takes a limit.
- Two upgrades at once: prune removed another's staging folder: fixed,
.<v>.new/old.<pid> folders are kept while that pid runs.
- A failed rollback of the link was silent: fixed,
upgrade_rollback_failed names the link and the old devvm, and the new
folder stays so the link isn't left dangling.
- QEMU's guestfwd names devvm with commas doubled, which the in-use check
missed: fixed.
- Freeze (a host serving the current version as newest forever): no
boundary crossed, inherent without signed expiring metadata;
documented in internals/install.md.
Checked sound: nothing untrusted runs or unpacks before the signature
and SHA-256; versions from the redirect and --to pass Valid before any
URL or path; tar takes only regular files in its one folder (no links,
subfolders, ..), 512 MiB cap, fixed modes; test overrides are read only
by test builds.
Tests: minisign (real minisign fixture, tampering, legacy, other key),
each install kind against the fake TLS server, bad signature, wrong
trusted comment, replaced archive (wrong SHA), bad archives, a new
devvm that fails before and after the switch, a failed switch (old
kept), a failed rollback, downgrade refused and --to, pruning, Homebrew
via a brew script, Check, Latest's failures, Compare; CLI test
upgrade.txtar.
Docs: getting-started/install.md (Upgrading: how, what it checks, an
older release, --json), getting-started/commands.md (This machine row,
Upgrading devvm, questions, output for scripts), internals/install.md
(devvm upgrade), contributing (release_server), the CLI reference.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
internal/cli/docgen writes docs/content/docs/cli/ with cobra/doc: a Hugo
page per command users can run and the section's _index.md, run by mise
run cli-docs and before mise run docs. A test fails when the checked-in
pages are stale.
New modules (go mod tidy): github.com/spf13/cobra/doc (part of cobra
v1.10.2, imported directly), and indirect github.com/cpuguy83/go-md2man/v2
v2.0.6, github.com/russross/blackfriday/v2 v2.1.0 and go.yaml.in/yaml/v3
v3.0.4 (gopkg.in/check.v1 in go.sum only).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
internal/ui is now the only package that prints: the message helpers,
prompts, tty detection, the status line, the run log (Logged, step
counts, proxy keys redacted) and ui.Main, which recovers Die, runs the
cleanup stack and handles INT/TERM/HUP (exit 130). main runs devvm
through it, and Cobra's errors print as one-line devvm errors.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
locales/en.toml holds every message; go generate ./internal/msg writes
one typed function per message. internal/msg renders them through a
go-i18n bundle in the user's language (LC_ALL, LC_MESSAGES, LANG), with
names mode (DEVVM_MESSAGES=names) and doc links. devvm _msg prints a
message's text. Tests check the generated file is current, every
message renders and is called, and every doc link exists; lint runs
the doc link check.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Run testdata/script/*.txtar against a freshly built devvm, with HOME,
the XDG folders, the Lima home and the stub state in a sandbox under
/tmp, and testdata/stubs first on PATH. Add the stub_calls command,
uname and sw_vers stubs driven by env vars, scripts for the root
command and the sandbox, and README sections on writing CLI tests.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A Cobra root command with no subcommands yet, a paths package that finds
devvm's files next to its binary (following links), Go pinned with mise,
the README, the license, and the security-audit skill.
Co-Authored-By: Claude Opus 5.5 <[email protected]>