New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stage2: ensure builtin packages are always available #11867
Conversation
This doesn't feel like the right fix, why is the std package not found "after a certain package depth"? |
Line 1468 in b66247c
Either that needs to be made recursive or builtin should also be handled here. Also is root intentionally omitted from other packages?
|
If I'm not mistaken, this change would make the code Vexu referenced in Compilation.zig unnecessary. It should probably be removed. |
It's used with the |
just to be sure, |
20e70d2
to
d8db350
Compare
@import
fail seems unrelated? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's let the CI run; I can do the typo fix upon merging.
src/main.zig
Outdated
@@ -858,6 +858,12 @@ fn buildOutputType( | |||
) catch |err| { | |||
fatal("Failed to add package at path {s}: {s}", .{ pkg_path.?, @errorName(err) }); | |||
}; | |||
|
|||
if (mem.eql(u8, pkg_name.?, "std") or mem.eql(u8, pkg_name.?, "root") or mem.eql(u8, pkg_name.?, "builtin")) { | |||
fatal("unable to add package '{s}' -> '{s}': conflicts with builtin pacakge", .{ pkg_name.?, pkg_path.? }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fatal("unable to add package '{s}' -> '{s}': conflicts with builtin pacakge", .{ pkg_name.?, pkg_path.? }); | |
fatal("unable to add package '{s}' -> '{s}': conflicts with builtin package", .{ pkg_name.?, pkg_path.? }); |
after a certain package depth, it appears access to the
'std'
package is lost. with this fix building nektro/aquila reaches a new error