Repository navigation
feat(pkgs): add the initial set of package definitions - #3034
Open
mikeland73 wants to merge 1 commit into
Open
mikeland73 wants to merge 1 commit into
mikeland73 wants to merge 1 commit into
Conversation
Add package definitions for nodejs (with npm), pnpm, yarn, python, uv, rust, java (Eclipse Temurin), gradle, maven, deno, bun, zig, terraform, kubectl and helm, next to the existing go definition. The go definition now sets GOTOOLCHAIN=local, like the nixpkgs go, so the version in devbox.json runs even when go.mod asks for a newer toolchain. The spec documents what these packages need from the format: lists of version sources, paginated sources, versions with +build metadata, install.lookup for vendors whose download names come from an index, install.version_overrides for vendors that changed how they ship, sha512 and github_release checksums, platforms a version is not published for, and binaries that install marks executable and verifies. It also lists the shipped packages and the PR 4-6 plan. The definitions parse once the next change implements these features. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This was referenced Oct 30, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fourth PR of the package definitions stack. Adds 15 package definitions next to Go, and updates the spec with what they need from the format. The goal is to show that the structure holds for installing and switching versions of the most commonly used packages: node (with npm, pnpm, yarn), python, rust and java, plus the tools in the table below.
nodejs(npm included)SHASUMS256.txtpnpm@pnpm/<os>-<arch>(<11)yarn@yarnpkg/cli-dist(2+),yarn(1.x)pythonuv.sha256rustpost_install.sha256, then rustupjavagradlemaven.sha512deno,bun.sha256sum,SHASUMS256.txtzigterraformSHA256SUMSkubectl.sha256helm.sha256sumWriting these against the real vendors exposed the gaps the spec now covers (implemented in the next PR):
install.lookup: python-build-standalone puts a build date in every file name, Temurin renames respins, and zig renamed its tarballs. Their indexes have the URL and checksum.install.version_overrides: pnpm changed its artifacts in 11, yarn 1 and 2+ are different npm packages, and Deno <2.0.1 has no checksums.+buildversions (21.0.5+11).binaries: install now marks them executable (npm tarballs drop the bit) and verifies they exist.Design choices worth a look:
post_installhook rather than the plannedmanagerstrategy. Toolchains shareRUSTUP_HOME, andRUSTUP_TOOLCHAINselects the version, sorustup target addstill works.$VENV_DIR(default.venv) and recreates it when the version changes, sopipnever writes into the shared install. A venv Devbox didn't create is left alone, with a warning.npm install -gto the project's virtenv, for the same reason.GOTOOLCHAIN=local, as the nixpkgs Go does, so the pinned version runs even whengo.modasks for a newer one.The definitions use format features implemented in the next PR, so they don't parse on this branch alone.
Test plan
jetpackio/devbox)🤖 Generated with Claude Code