Skip to content

Support workspaces and packages inside a repository's folders - #7

Merged
S42yt merged 1 commit into
masterfrom
feat/workspaces
Oct 8, 2026
Merged

S42yt merged 1 commit into
masterfrom
feat/workspaces

Conversation

@S42yt

@S42yt S42yt commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

This is the package-manager side of Burn's workspaces (burnlang/burn#44, merged) for 26.1.0-experimental-3.

Workspaces

  • One lock: ash install, update, remove and sync resolve every member's dependencies together into one burn.lock at the workspace root.
    • Dependencies between members are skipped, because the compiler resolves those itself.
    • path dependencies are rebased onto the root.
  • Where packages go: 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 … or ash build -p bvm. It matches the member's folder, short name or full name.
  • At the root:
    • ash list shows each member's tree, and other members appear as (workspace member).
    • ash build, test and check hand off to burn, which runs them for every member.

Packages inside a repository

  • Names: package names may have more than three parts. github.com/you/game/common is the common folder of the repository github.com/you/game.
  • Download location: the repository is downloaded once into ~/.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).
  • Sibling dependencies: a downloaded member's path dependencies on its siblings become pinned git dependencies on the same commit, instead of the old "depends on … by path" error.
  • Errors: a missing folder says … has no burn.toml in common/.
  • ash publish: compares origin with the repository part of the name.

Tests

New end-to-end cases in tests/e2e.sh:

  • Installing a sub-package from a published workspace repository: its sibling is locked at the same commit, the download lands inside the repository's folder, and the app runs.
  • A local workspace from burn init --workspace:
    • installing from a member writes only the root lock
    • reinstalling restores the packages
    • ash list at the root
    • ash test across members
    • ash build -p bvm
    • installing at the root is refused
    • ash -p native list

Locally, against current burn master: burn fmt --check, burn check, burni tests/main.bn and tests/e2e.sh all pass.

🤖 Generated with Claude Code

https://claude.ai/code/session_01PCXUjgpGnka9y7AHKfnN3w


Generated by Claude Code

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.
@S42yt
S42yt merged commit 80db6a1 into master Oct 8, 2026
1 check passed
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.

1 participant