fix 'moon run' compiles multi packages issue#862
fix 'moon run' compiles multi packages issue#862HenryCROSS wants to merge 1 commit intomoonbitlang:mainfrom
Conversation
Potential panic with unwrap() on get_package_by_pathCategory Redundant package lookup - same package retrieved twiceCategory Unnecessary PathBuf allocation for package lookupCategory |
|
Sorry for the late update, I've been a bit busy recently. Compared to the code without changes, there are two more errors during the test in my local. I'm not sure what the issue is, and it might take some time to figure out. test test_cases::test_sub_package ... FAILED |
|
env UPDATE_EXPECT=1 cargo test has a different result, which doesn't have the extra errors. |
7b63291 to
4872036
Compare
|
|
I ran test result: FAILED. 134 passed; 50 failed; 6 ignored; 0 measured; 0 filtered out; It seems that all the errors are caused by the main branch rather than the changes introduced in this PR. |
|
need a rebase & use latest toolchain |
After I rebased and run env UPDATE_EXPECT=1 cargo test: |
| $ moon test | ||
| Total tests: 1, passed: 1, failed: 0. | ||
| [255] | ||
| failed: moonc build-package -error-format json ${WORK_DIR}/src/lib/hello_test.mbt ${WORK_DIR}/target/wasm-gc/debug/test/lib/__generated_driver_for_blackbox_test.mbt -o ${WORK_DIR}/target/wasm-gc/debug/test/lib/lib.blackbox_test.core -pkg username/hello/lib_blackbox_test -is-main -std-path $MOON_HOME/lib/core/target/wasm-gc/release/bundle -i ${WORK_DIR}/target/wasm-gc/debug/test/lib/lib.mi:lib -pkg-sources username/hello/lib_blackbox_test:${WORK_DIR}/src/lib -target wasm-gc -g -O0 -source-map -blackbox-test -no-mi -test-mode |
There was a problem hiding this comment.
these diff are not what we expected, have you using latest toolchain ?
There was a problem hiding this comment.
Yes, I left the version in the stream, it is the newest stable toolchain. Also I tried to run it in a clean Ubuntu docker environment and got the same result.
3c442f6 to
8ae145c
Compare
|
It should be fine now. No extra errors are being produced compared to the testing errors from the main branch. |


Related Issues
Type of Pull Request
Does this PR change existing behavior?
Does this PR introduce new dependencies?
Checklist: