build: separate package identity from storage paths

This commit is contained in:
2026-08-13 05:37:56 +09:00
parent 5f0f544157
commit c3df0afeb0
11 changed files with 1167 additions and 505 deletions

View File

@@ -629,7 +629,9 @@ export fn parsefile(p: *parser) *node = {
|| strings.compare(name, "main_test") == 0);
if (strings.compare(name, last) != 0 && !testsupport
&& !commandpackage) {
errmsg(p, "package does not match import path");
errmsg(p, strings.concat(strings.concat(strings.concat(
"package ", name),
" does not match import path "), active));
};
} else {
p.curmod = name;