mirror of
https://github.com/devvmhq/devvm.git
synced 2026-12-01 21:36:40 -10:00
DEVVM_HOST_MISE (which replaced the pinned, checksummed mise), DEVVM_KVM and DEVVM_UBUNTU_URL were read in every build, a release's included. One ldflag in a leaf package, internal/testbuild (testBuild=yes, set by tests/e2e.sh and the CLI tests), now marks a test build, and cli's readOverrides is the one place devvm reads every test override, into Overrides (registry.Overrides, with platform.Overrides for the host's size, and HostMise): empty unless testbuild.On(). registry.New takes them; lima.New takes Ubuntu's URL; ubuntu.New takes a URL, not getenv; Lima's and smolvm's KVM default to /dev/kvm; tools.Env has Mise in place of reading DEVVM_HOST_MISE; platform.NewHost takes Overrides. Gone: registry.unreviewed, registry.Host, newFor, hostFor, ubuntu.URLEnv. The documented settings (DEVVM_LIMA_HOME, DEVVM_SECRET_SERVICE, DEVVM_NO_TOOL_CHECK, DEVVM_FROM) stay as they are. Tests: TestReleaseReadsNoOverrides (cli: a release reads none, its mise, KVM, unreviewed and host its own), TestOverrides (registry: every override reaches its backend, none leaves the defaults), TestHostOverrides and TestListTimeout (platform) and ubuntu's TestNew moved to the new shapes. Docs: contributing/testing.md's Test builds, contributing's sandbox table. Co-Authored-By: Claude Opus 5.5 <[email protected]>