Skip to content

Update to Zig master (0.17.0-dev.864+3deb86baf)#1154

Draft
dylanlangston with Copilot wants to merge 4 commits into
mainfrom
copilot/upgrade-libraries-and-submodules
Draft

Update to Zig master (0.17.0-dev.864+3deb86baf)#1154
dylanlangston with Copilot wants to merge 4 commits into
mainfrom
copilot/upgrade-libraries-and-submodules

Conversation

Copilot AI commented Jun 16, 2026

Copy link
Copy Markdown

Zig master introduced a wave of breaking API changes across the build system and standard library. This updates all build scripts to compile cleanly against 0.17.0-dev.864+3deb86baf and bumps minimum_zig_version accordingly.

std.Build API changes

  • b.sysroot removed — passed via --sysroot ./emsdk/upstream/emscripten in Makefile instead
  • b.build_root.path.?b.root.root_dir.path.?
  • b.pathFromRoot()b.root.joinString(b.allocator, path) catch @panic("OOM")
  • b.argsrun.addPassthruArgs()
  • LazyPath.dupe(b)LazyPath.dupe(b.graph)
  • b.dupe()b.allocator.dupe(u8, ...) (needed where caller mutates the string)
  • Compile.addIncludePath / linkLibrary moved to Module — use artifact.root_module.*

std.fsstd.Io migration

Most of std.fs is now under std.Io.Dir. Affected APIs and their call-site changes:

// Before
const cwd = std.fs.cwd();
const dir = try cwd.openDir(path, .{});
try cwd.makePath(path);
const file = try std.fs.openFileAbsolute(path, .{});
file.close();
while (try walker.next()) |entry| { ... }

// After
const cwd = std.Io.Dir.cwd();
const dir = try cwd.openDir(b.graph.io, path, .{});
try cwd.createDirPath(b.graph.io, path);
const file = try std.Io.Dir.openFileAbsolute(b.graph.io, path, .{});
file.close(b.graph.io);
while (try walker.next(b.graph.io)) |entry| { ... }

std.fs.path.* and std.fs.File are aliased via std.Io.Dir.path.* / std.Io.File.

Other

  • site/package-lock.json regenerated

Copilot AI changed the title Update Zig to 0.17.0-dev.864+3deb86baf Update to Zig master (0.17.0-dev.864+3deb86baf) Jun 16, 2026
Copilot AI requested a review from dylanlangston June 16, 2026 04:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants