Update to Roc nightly-2026-10-03-c507926 - #503
Open
Anton-4-bot wants to merge 1 commit into
Open
Anton-4-bot wants to merge 1 commit into
Anton-4-bot wants to merge 1 commit into
Conversation
Adapt the platform and its tooling to the compiler changes in this nightly: - Remove redundant type exposes such as `import IOErr exposing [IOErr]`, which are now an error: `redundant expose ... The type IOErr is automatically exposed when importing a type module.` - List main.roc first when bundling. `roc bundle` treats the first .roc file as the entry point and now reports its diagnostics, so the previous alphabetical order made Cmd.roc the entry and failed with `reference has no value` and `This Header type is declared to be in http.Header, which does not exist.` - Bundling the platform entry point now checks that every declared target input exists (`The targets section declares file libhost.a for target x64mac but this file doesn't exist.`). Add `--stub-missing-targets` to scripts/bundle.py, used only by test.py, so test bundles that only build the native target still work. Release bundles still require every real target. - Apply the new formatter output to platform and examples. - Bump the nightly pin in the CI workflows. The Nix pins stay on 2026-09-26 until roc-overlay publishes this nightly. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
Adapts the platform and its tooling to the compiler changes in nightly-2026-10-03-c507926.
import IOErr exposing [IOErr]), which are now an error.scripts/bundle.pylistsmain.rocfirst.roc bundleuses the first.rocfile as the entry point and now reports its diagnostics, so the alphabetical order madeCmd.rocthe entry point and bundling failed.scripts/bundle.py --stub-missing-targets(used only byscripts/test.py) creates empty placeholders for targets that were not built and removes them afterwards, so test bundles that only build the native target keep working. Release bundles still need every real target.The Nix pins (
flake.nix,nix/release.nix) stay on nightly-2026-09-26-d6267b4 because roc-overlay does not publish this nightly yet.Tested on macOS arm64:
scripts/test.py --operation all,scripts/test.py --operation validateand the release tooling unit tests.🤖 Generated with Claude Code