Skip to content

feat(justfile): add env and shell recipes for dev-built stack - #691

Merged
norrietaylor merged 1 commit into
mainfrom
justfile-env
Jul 9, 2026
Merged

feat(justfile): add env and shell recipes for dev-built stack#691
norrietaylor merged 1 commit into
mainfrom
justfile-env

Conversation

@norrietaylor

@norrietaylor norrietaylor commented Jul 9, 2026

Copy link
Copy Markdown
Member

Summary

  • just env prints export lines wiring the dev-built binaries and guest artifacts into the environment — the same setup up/dm3 do internally — so minimal/minvmd can be run by hand against the built stack via eval "$(just env)".
  • just shell drops into a subshell with that environment loaded (exit to leave).

Exports: MINVMD_KERNEL_PATH, MINVMD_ROOTFS_PATH, MINVMD_INITRAMFS, MINVMD_BOOT_LOG, MINVMD_GVPROXY_BIN, target/debug prepended to PATH, and LD_LIBRARY_PATH pointing at the krun prefix on Linux.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features
    • Added a new environment setup command that outputs the required shell exports for local development.
    • Added a new interactive shell command that launches a subshell with the development environment preloaded.
    • Improved the developer experience by automatically wiring local binaries, generated artifacts, and platform-specific library paths.

Add a `just env` recipe that prints export lines wiring the dev-built
binaries and guest artifacts (MINVMD_* paths, target/debug on PATH,
LD_LIBRARY_PATH on Linux) into the environment, matching the setup
`up`/`dm3` do internally, and a `just shell` recipe that drops into a
subshell with that environment loaded.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jul 9, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: a2b27019-46b1-4330-8654-600becb4cd9e

📥 Commits

Reviewing files that changed from the base of the PR and between 71b364b and e077a3f.

📒 Files selected for processing (1)
  • justfile

📝 Walkthrough

Walkthrough

The justfile adds env and shell targets. env exports paths for locally built binaries and guest artifacts, while shell loads those exports and starts the configured interactive shell.

Changes

Development environment setup

Layer / File(s) Summary
Environment export recipe
justfile
The env target emits MINVMD_*, PATH, and Linux LD_LIBRARY_PATH exports.
Interactive shell integration
justfile
The shell target evaluates just env, prints a status message, and execs $SHELL or sh.

Estimated code review effort: 2 (Simple) | ~10 minutes

Poem

A rabbit hops where debug paths gleam,
With kernels tucked in a shell-built dream.
env plants exports in neat rows,
shell opens where the dev wind blows.
Linux libraries join the parade—
“Hop in!” says Bun, “the paths are made!”

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the main change: adding env and shell justfile recipes for the dev-built stack.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

Comment @coderabbitai help to get the list of available commands.

@norrietaylor
norrietaylor merged commit 47bc254 into main Jul 9, 2026
9 checks passed
@norrietaylor
norrietaylor deleted the justfile-env branch July 9, 2026 23:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants