Skip to content
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

no field named 'root_source_file' in struct 'Build.CreateModuleOptions' #18725

Closed
qcjxberin opened this issue Jan 29, 2024 · 2 comments
Closed
Labels
bug Observed behavior contradicts documented or intended behavior

Comments

@qcjxberin
Copy link

Zig Version

0.11

Steps to Reproduce and Observed Behavior

An error is reported when using a third-party library https://github.com/karlseguin/log.zig:
error: no field named 'root_source_file' in struct 'Build.CreateModuleOptions'
.root_source_file = .{ .path = "src/logz.zig" },

Expected Behavior

Compilation works fine

@qcjxberin qcjxberin added the bug Observed behavior contradicts documented or intended behavior label Jan 29, 2024
@ianprime0509
Copy link
Contributor

The root_source_file field in Build.CreateModuleOptions was named source_file in 0.11. This was one of the breaking changes made in #18160. It seems that the log.zig library you're trying to use only supports Zig master for now and not 0.11, since it's using the new name of the field unconditionally.

@qcjxberin
Copy link
Author

Thanks, with your help I've solved the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Observed behavior contradicts documented or intended behavior
Projects
None yet
Development

No branches or pull requests

2 participants