Skip to content

πŸ› fix: restore package-backed basic-cli canon#7

Merged
zrr1999 merged 2 commits into
mainfrom
doc/canonical-project-mode-example
Apr 17, 2026
Merged

πŸ› fix: restore package-backed basic-cli canon#7
zrr1999 merged 2 commits into
mainfrom
doc/canonical-project-mode-example

Conversation

@zrr1999

@zrr1999 zrr1999 commented Apr 14, 2026

Copy link
Copy Markdown
Member

Summary

  • restore examples/hello-app/ to the real package-backed basic-cli project shape instead of the temporary built-in cli fallback
  • update the README to match the current scaffold/formatter reality, including the in-repo path dependency and the formatter-normalized stdout import
  • refresh the CI workflow to pin a spore commit that supports package-backed Platforms and to exercise the project-mode example via format/check/build/run
  • mark src/host.sp as a legacy compatibility shim rather than the canonical startup path

Validation

  • cargo test --manifest-path host/Cargo.toml
  • ../spore/target/release/spore format examples/hello.sp examples/hello-app/src/main.sp src/basic_cli/*.sp
  • ../spore/target/release/spore check examples/hello-app/src/main.sp
  • ../spore/target/release/spore build examples/hello-app/src/main.sp
  • ../spore/target/release/spore run examples/hello-app/src/main.sp
  • ../spore/target/release/spore run examples/hello.sp

Notes

  • the previous workflow pin was still on the spore #74 era, which only recognized built-in cli / web / embedded; this PR updates the pin to a commit that supports package-backed basic-cli
  • the current formatter normalizes the hello-app import to import basic_cli.stdout as stdout, while println(...) still resolves directly in scope; the example and README are now explicit about that current behavior

zrr1999 and others added 2 commits April 15, 2026 00:19
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@zrr1999 zrr1999 changed the title πŸ”§ fix: restore package-backed basic-cli canon πŸ› fix: restore package-backed basic-cli canon Apr 15, 2026
@zrr1999
zrr1999 merged commit 0ec2a1b into main Apr 17, 2026
6 of 7 checks passed
@zrr1999
zrr1999 deleted the doc/canonical-project-mode-example branch April 17, 2026 15:24
zrr1999 added a commit that referenced this pull request Apr 24, 2026
* πŸ”§ fix: restore package-backed basic-cli canon

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* πŸ”§ fix: realign package-backed basic-cli docs and CI

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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