Skip to content

ash, the Burn package manager - #1

Merged
S42yt merged 2 commits into
masterfrom
feat/ash
Sep 30, 2026
Merged

S42yt merged 2 commits into
masterfrom
feat/ash

Conversation

@S42yt

@S42yt S42yt commented Sep 30, 2026

Copy link
Copy Markdown
Contributor

ash is written in Burn and is itself a Burn project (burn.toml, burn build).

  • Packages are git repositories with a burn.toml, named after where they live (github.com/owner/project).
  • Commands:
    • ash install [name[@version]] [--git url], ash install ../path, ash remove, ash update, ash list (a tree).
    • ash init runs burn init.
  • Resolution:
    • Versions come from git tags via git ls-remote. Specs can be ^, ~, =, >=, *, a branch, or #commit.
    • Transitive dependencies resolve too, and unused ones are pruned.
    • burn.lock pins exact commits. Downloads are shallow and cached in ~/.burn/packages, so a matching lock needs no network.
  • Scripts:
    • ash run <script>, or just ash <script>.
    • ash build, ash start and ash test run the script of that name, or fall back to burn build, burn run, or every file in tests/.
    • ash check type-checks the project; ash fmt formats it.
  • Commands from apps: ash install -g <name|path> builds an app into ~/.burn/bin; remove -g and list -g manage them.
  • Sharing: ash search uses burnlang/ash-index, ash info lists versions, and ash publish [--tag] checks the origin, the tag and a clean tree.
  • Tests:
    • tests/main.bn holds unit tests.
    • tests/e2e.sh creates local git repos and covers install, lock restore, pin/update, a major upgrade with pruning, errors, scripts, path deps and -g. It passes with ash native and on the interpreter.

CI builds Burn from master, so it goes green once burnlang/burn#14 is merged.

🤖 Generated with Claude Code

https://claude.ai/code/session_01PCXUjgpGnka9y7AHKfnN3w


Generated by Claude Code

Installs git repositories with a burn.toml as packages named after where they
live (github.com/owner/project), resolves versions from git tags, pins exact
commits in burn.lock and caches downloads in ~/.burn/packages. Also runs
burn.toml scripts, installs apps as commands, searches the ash index and
checks projects before publishing.

S42yt commented Sep 30, 2026

Copy link
Copy Markdown
Contributor Author

The test check fails at burn check with error: no source file given. CI builds Burn from burnlang/burn master, which doesn't have project support (burn check without a file, std/process, std/fs) yet. That comes in burnlang/burn#14. The same tests pass locally against that branch, with ash both compiled natively and on the interpreter. I'll re-run the check once burnlang/burn#14 is merged.


Generated by Claude Code

@S42yt
S42yt merged commit 27975cb into master Sep 30, 2026
1 check failed
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