assets/ holds the files devvm ships: base.yaml, layers/, features/,
shared-tools/ (mise.toml, build.sh, the tools' policies), guest/ and
oci/. devvm reads them from assets/ beside its binary (paths.Root,
paths.RootOf); releases, the Homebrew formula, the CLI tests and e2e
put them there. Image keys hash them by their names in assets/.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
install.sh picks this host's archive (devvm-<version>-<os>-<arch>.tar.gz:
darwin or linux, arm64 or amd64; Apple silicon's under Rosetta, from
sysctl hw.optional.arm64), checks SHA256SUMS's minisign signature (an
empty key still skips it, with a warning; no minisign prints the command
to check by hand), then the archive's checksum, and installs the binary
with its data files in <prefix>/lib/devvm/<version>, linked from
<prefix>/bin/devvm. Older versions go, except one a running process
names in its arguments (a VM's proxy, QEMU's guestfwd on Linux): it's
kept until a later install. Then it offers devvm doctor --fixes' fixes,
asking first (Homebrew's Lima or Lima's checked release tarball, QEMU,
the kvm group), and runs devvm doctor. Downloads are HTTPS only. Its text
isn't messages: it runs before devvm is there.
release.sh --head now needs install.sh too.
Tests: testdata/script/install.txtar sources install.sh (host and archive
names, Rosetta, version choice and validation, HTTPS-only fetch, run_fix
as words, install and links, reinstall, an older version in use kept
(and the real ps), signature good, bad, missing, no minisign, a bad
checksum, no archive for this host, Lima's tarball for the host and
arch and a bad checksum, the PATH hint, the fixes with --yes, the kvm
re-login, no yes, Lima's release once allowed, nothing missing, main's
options, and the tests' devvm binary installed and finding its files);
release_head.txtar: a HEAD without install.sh is refused.
docs: install.md (Homebrew and the install script, upgrading,
uninstalling), maintaining.md (trying install.sh on a --head build),
README.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
scripts/release.sh checks the signed tag (git tag -v) and its signer
against this checkout's packaging/release-signer, then runs goreleaser
release --skip=publish (--snapshot with --head) in a clone of the commit,
so only what's committed goes in. .goreleaser.yaml builds darwin/linux x
arm64/amd64 archives with the binary and its data files, a source
tarball and SHA256SUMS, with -X github.com/w3cj/devvm/internal/cli.version
(VERSION's version, for HEAD too). release.sh checks the host's binary
prints the version, signs SHA256SUMS with minisign and verifies it, fills
in install.sh (release_version, minisign_key) and the Homebrew formula,
which builds from the source tarball with Go (brew audit --strict clean).
--head takes DEVVM_MINISIGN_PUB for a test key, and skips a missing
install.sh; a tag without one is refused.
scripts/bump.sh writes the host mise's pins in internal/tools/mise.go.
VERSION and a fresh CHANGELOG.md. docs: maintaining.md (pins, releasing).
Tests: testdata/script/release.txtar (unsigned tag, no pin, another
signer, the checkout's pin, no install.sh), release_head.txtar (unsigned,
signed and verified, install.sh and formula filled in, only committed
files, wrong key, wrong version, bad install.sh, bad VERSION), bump.txtar
(crane, mise in base.sh and mise.go, hostile and missing values, --check
control characters, unknown tool). The sandbox sets DEVVM_REPO.
Co-Authored-By: Claude Opus 5.5 <[email protected]>