You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
qcjxberin
added
the
bug
Observed behavior contradicts documented or intended behavior
label
Jan 29, 2024
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.
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
The text was updated successfully, but these errors were encountered: