Repository navigation
[pkgdef 4/6] feat(pkgs): add the initial set of package definitions - #3034
Open
mikeland73 wants to merge 9 commits into
Open
mikeland73 wants to merge 9 commits into
mikeland73 wants to merge 9 commits 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) <[email protected]>
This was referenced Oct 30, 2026
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. |
[Medium impact] The PR appears safe to merge as part of the supplied stack, with PR #3035 providing the required format support.
|
Collaborator
Author
|
@greptileai review Generated by Claude Code |
1 similar comment
Collaborator
Author
|
@greptileai review Generated by Claude Code |
…t activated Mark virtual environments Devbox creates with .devbox-venv and require the marker before running venv --clear on a version switch, so user-created environments are never erased. When an existing venv is left alone and not activated, export PIP_REQUIRE_VIRTUALENV=1 so pip3 from the shared install refuses to modify it. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Bqy92none6xcXNmBBX5aD7
Collaborator
Author
|
@greptileai review Generated by Claude Code |
# Conflicts: # specs/package-definitions.md
greptile-apps
Bot
dismissed
their stale review
November 23, 2026 21:59
Dismissed because a newer commit was pushed; Greptile will re-review the current head.
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Bqy92mV11RTGiKeSuiHtuV
Combine the spec audit fixes from lower PRs with this PR's spec additions:
version comparison (prefix ordering plus build metadata), the bin_name
rule on the lookup-aware binary row, the omitted-checksum note next to the
digest formats, and create_files in the template variable table next to
{{.Page}}.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Bqy92mV11RTGiKeSuiHtuV
Collaborator
Author
|
@greptileai review Generated by Claude Code |
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.
Stack (merge in order):
internal/pkgdeflibraryDEVBOX_FEATURE_PKG_DEFS)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), sopipnever writes into the shared install. When the version changes it recreates only a venv Devbox created (marked by a.devbox-venvfile). Any other venv is left alone and not activated, with a warning, andPIP_REQUIRE_VIRTUALENV=1keepspip3from installing into the shared Python.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 by Claude Code