remove anonymous import
All checks were successful
Generic zig build / build (push) Successful in 2m21s
Generic zig build / deploy (push) Successful in 18s

This commit is contained in:
Emil Lerch 2026-08-05 13:33:52 -07:00
parent 16319a9f47
commit d2e0f43bf0
Signed by: lobo
GPG key ID: A7B62D657EF764F8

View file

@ -144,9 +144,12 @@ pub fn build(b: *std.Build) void {
root_module.addImport("httpz", httpz.module("httpz"));
root_module.addImport("zeit", zeit.module("zeit"));
root_module.addImport("srf", srf.module("srf"));
root_module.addAnonymousImport("airports.dat", .{
// A named module rather than an anonymous import. Anonymous imports can put
// the same file in more than one module, which surfaces later as a confusing
// "file exists in multiple modules" error, and they leave the wiring implicit.
root_module.addImport("airports.dat", b.addModule("airports.dat", .{
.root_source_file = openflights.path("data/airports.dat"),
});
}));
root_module.addOptions("build_options", build_options);
root_module.addIncludePath(maxminddb_upstream.path("include"));
root_module.addIncludePath(b.path("libs/phoon_14Aug2014"));