Repository navigation
Support workspaces and packages inside a repository's folders - #7
Merged
Merged
Conversation
In a workspace, ash resolves every member's dependencies together into the burn.lock at the workspace root, installs into the member it runs in (or the one -p names), lists every member at the root and hands build, test and check at the root to burn. Package names may have more than three parts: github.com/you/game/common is the common folder of the repository github.com/you/game, downloaded once with its siblings, and its path dependencies on those siblings are pinned to the same commit.
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.
This is the package-manager side of Burn's workspaces (burnlang/burn#44, merged) for 26.1.0-experimental-3.
Workspaces
ash install,update,removeandsyncresolve every member's dependencies together into oneburn.lockat the workspace root.pathdependencies are rebased onto the root.ash install <name>adds the package to the member you run it in. At a pure workspace root it says to run it inside a member or use-p.-p <member>works with every command, e.g.ash -p native install …orash build -p bvm. It matches the member's folder, short name or full name.ash listshows each member's tree, and other members appear as (workspace member).ash build,testandcheckhand off toburn, which runs them for every member.Packages inside a repository
github.com/you/game/commonis thecommonfolder of the repositorygithub.com/you/game.~/.burn/packages/github.com/you/game@<commit>/, and members are used from there. That's the same place the compiler now looks (Add workspaces for projects made of several packages burn#44).pathdependencies on its siblings become pinned git dependencies on the same commit, instead of the old "depends on … by path" error.… has no burn.toml in common/.ash publish: comparesoriginwith the repository part of the name.Tests
New end-to-end cases in
tests/e2e.sh:burn init --workspace:ash listat the rootash testacross membersash build -p bvmash -p native listLocally, against current burn master:
burn fmt --check,burn check,burni tests/main.bnandtests/e2e.shall pass.🤖 Generated with Claude Code
https://claude.ai/code/session_01PCXUjgpGnka9y7AHKfnN3w
Generated by Claude Code