mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
Merge pull request #6275 from roc-lang/better-mono-error
more visible+better mono error
This commit is contained in:
commit
24d042f18e
2 changed files with 15 additions and 2 deletions
|
@ -32,8 +32,9 @@ jobs:
|
||||||
- name: test building default.nix
|
- name: test building default.nix
|
||||||
run: nix-build
|
run: nix-build
|
||||||
|
|
||||||
|
# for skipped tests: see issue 6274
|
||||||
- name: execute tests with --release
|
- name: execute tests with --release
|
||||||
run: nix develop -c cargo test --locked --release
|
run: nix develop -c cargo test --locked --release -- --skip cli_run::inspect_gui --skip cli_run::hello_gui
|
||||||
|
|
||||||
- name: make a libapp.so for the next step
|
- name: make a libapp.so for the next step
|
||||||
run: nix develop -c cargo run -- gen-stub-lib examples/platform-switching/rocLovesRust.roc
|
run: nix develop -c cargo run -- gen-stub-lib examples/platform-switching/rocLovesRust.roc
|
||||||
|
|
|
@ -234,7 +234,19 @@ fn verify_procedures<'a>(
|
||||||
|
|
||||||
if !has_changes.stdout.is_empty() {
|
if !has_changes.stdout.is_empty() {
|
||||||
println!("{}", std::str::from_utf8(&has_changes.stdout).unwrap());
|
println!("{}", std::str::from_utf8(&has_changes.stdout).unwrap());
|
||||||
panic!("Output changed: resolve conflicts and `git add` the file.");
|
panic!(indoc!(
|
||||||
|
r#"
|
||||||
|
|
||||||
|
Mono output has changed! This is normal when making changes to the builtins.
|
||||||
|
To fix it; run these commands locally:
|
||||||
|
|
||||||
|
cargo test -p test_mono -p uitest --no-fail-fast
|
||||||
|
git add -u
|
||||||
|
git commit -S -m "update mono tests"
|
||||||
|
git push origin YOUR_BRANCH_NAME
|
||||||
|
|
||||||
|
"#
|
||||||
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue