Bundle reserved Forest stdlib components #2

Open
kjuulh wants to merge 3 commits from feature/forest-stdlib-bundle into kjuulh/gitea-fork
Owner

Summary

  • bundle reserved Forest stdlib modules (forest/sdk, forest/deployment) with release artifacts and installs
  • vendor reserved CUE imports into the CUE module cache before invoking cue
  • reserve forest/* so users import it directly instead of add/update treating it as registry-managed

Verification

  • cargo test --locked -p forest stdlib::tests
  • cargo test --locked -p forest reserved_stdlib
  • cargo test --locked -p forest contracts::tests
  • cargo build --locked -p forest
  • bash -n scripts/install.sh
  • offline smoke: CUE_REGISTRY= CUE_CACHE_DIR=/tmp/forest-cue-cache-sdk target/debug/forest update with import "forest.sh/forest/sdk@v0"
  • offline smoke: same for import "forest.sh/forest/deployment@v0"

Notes

cargo fmt -p forest --check still reports pre-existing formatting diffs outside this PR, so I left formatting scoped to touched Rust files.

## Summary - bundle reserved Forest stdlib modules (`forest/sdk`, `forest/deployment`) with release artifacts and installs - vendor reserved CUE imports into the CUE module cache before invoking `cue` - reserve `forest/*` so users import it directly instead of add/update treating it as registry-managed ## Verification - `cargo test --locked -p forest stdlib::tests` - `cargo test --locked -p forest reserved_stdlib` - `cargo test --locked -p forest contracts::tests` - `cargo build --locked -p forest` - `bash -n scripts/install.sh` - offline smoke: `CUE_REGISTRY= CUE_CACHE_DIR=/tmp/forest-cue-cache-sdk target/debug/forest update` with `import "forest.sh/forest/sdk@v0"` - offline smoke: same for `import "forest.sh/forest/deployment@v0"` ## Notes `cargo fmt -p forest --check` still reports pre-existing formatting diffs outside this PR, so I left formatting scoped to touched Rust files.
This pull request has changes conflicting with the target branch.
  • .woodpecker/deploy.yaml
  • .woodpecker/release-build.yaml
  • README.md
  • apps/forage/Dockerfile
  • apps/forest-ci/Dockerfile
  • apps/forest/Dockerfile
  • apps/forest/crates/forest/src/cli/self_cmd.rs
  • apps/forest/crates/forest/src/cli/update.rs
  • deployment/projects/forage/forest.cue
  • deployment/projects/forest/forest.cue
  • scripts/install.sh
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin feature/forest-stdlib-bundle:feature/forest-stdlib-bundle
git switch feature/forest-stdlib-bundle

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch kjuulh/gitea-fork
git merge --no-ff feature/forest-stdlib-bundle
git switch feature/forest-stdlib-bundle
git rebase kjuulh/gitea-fork
git switch kjuulh/gitea-fork
git merge --ff-only feature/forest-stdlib-bundle
git switch feature/forest-stdlib-bundle
git rebase kjuulh/gitea-fork
git switch kjuulh/gitea-fork
git merge --no-ff feature/forest-stdlib-bundle
git switch kjuulh/gitea-fork
git merge --squash feature/forest-stdlib-bundle
git switch kjuulh/gitea-fork
git merge --ff-only feature/forest-stdlib-bundle
git switch kjuulh/gitea-fork
git merge feature/forest-stdlib-bundle
git push origin kjuulh/gitea-fork
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
rawpotion/forest!2
No description provided.