diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 84280cd..5e9b7da 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,6 +15,6 @@ jobs: check: uses: fizzyedit/plugin-build-action/.github/workflows/check.yml@v7 with: - zig-version: "0.16.0" + zig-version: "0.17.0" # secrets: # build_env: ${{ secrets.MY_BUILD_ENV }} # as in release.yml, if the build needs one diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dab756a..0c266e1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,4 +12,4 @@ jobs: permissions: contents: write with: - zig-version: "0.16.0" + zig-version: "0.17.0" diff --git a/.github/workflows/sdk-repin.yml b/.github/workflows/sdk-repin.yml index e1a776c..28a0fd0 100644 --- a/.github/workflows/sdk-repin.yml +++ b/.github/workflows/sdk-repin.yml @@ -31,4 +31,4 @@ jobs: with: sdk-version: ${{ github.event.client_payload.version || inputs.sdk-version || '' }} force: ${{ inputs.force == true }} - zig-version: "0.16.0" + zig-version: "0.17.0" diff --git a/build.zig.zon b/build.zig.zon index eb7906a..f091a51 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -1,7 +1,7 @@ .{ .name = .zig, .version = "0.0.1", - .minimum_zig_version = "0.16.0", + .minimum_zig_version = "0.17.0", .paths = .{ "build.zig", "build.zig.zon", @@ -17,8 +17,8 @@ // The published SDK, not a path into a checkout: a release has to build from a // clean clone, and the release asset (never the tag's git archive) is the SDK // package alone — the monorepo root zon carries the app's own dependencies. - .url = "https://github.com/fizzyedit/fizzy/releases/download/sdk-v0.2.29/fizzy-sdk-v0.2.29.tar.gz", - .hash = "fizzy-0.2.29-SGBwY2sxJgCLLSPt4HLdlMSg7WtcP4K0fdtXI5WwJl2d", + .url = "https://github.com/fizzyedit/fizzy/releases/download/sdk-v0.2.30/fizzy-sdk-v0.2.30.tar.gz", + .hash = "fizzy-0.2.30-SGBwY1QnJwDznUMVnSLATxXgH2e8_Vz7eMwLj9UQ0sVU", }, }, } diff --git a/plugin.zig.zon b/plugin.zig.zon index c949db8..1edf533 100644 --- a/plugin.zig.zon +++ b/plugin.zig.zon @@ -1,8 +1,8 @@ .{ .id = "zig", .name = "Zig", - .version = "0.2.36", - .min_sdk_version = "0.2.29", + .version = "0.2.37", + .min_sdk_version = "0.2.30", .description = "Zig language support for fizzy", .tags = .{ "zig", "language" }, .author = "foxnne", diff --git a/src/Lsp.zig b/src/Lsp.zig index 73cce44..61a2de9 100644 --- a/src/Lsp.zig +++ b/src/Lsp.zig @@ -33,7 +33,7 @@ fn log(source: []const u8, level: std.log.Level, msg: []const u8) void { } fn currentEnviron() std.process.Environ { - if (builtin.os.tag == .windows) return .{ .block = .global }; + if (builtin.target.os.tag == .windows) return .{ .block = .global }; return .{ .block = .{ .slice = std.mem.span(@as([*:null]?[*:0]const u8, @ptrCast(std.c.environ))) } }; } @@ -48,7 +48,7 @@ fn tryDir(gpa: std.mem.Allocator, io: std.Io, dir: []const u8, exe_name: []const } fn findInPathList(gpa: std.mem.Allocator, io: std.Io, path_list: []const u8, exe_name: []const u8) ?[]const u8 { - const sep: u8 = if (builtin.os.tag == .windows) ';' else ':'; + const sep: u8 = if (builtin.target.os.tag == .windows) ';' else ':'; var it = std.mem.tokenizeScalar(u8, path_list, sep); while (it.next()) |dir| { if (tryDir(gpa, io, dir, exe_name)) |found| return found; @@ -129,7 +129,7 @@ fn resolveExecutable( posix_name: []const u8, windows_name: []const u8, ) []const u8 { - if (builtin.os.tag == .windows) return windows_name; + if (builtin.target.os.tag == .windows) return windows_name; const exe_name = posix_name; @@ -153,7 +153,7 @@ pub fn configure() void { // Deliberately no executable resolution here — see `ensureResolved`. `register(host)` runs // on fizzy's startup path, and everything in it is time the window doesn't appear. - command_buf[0] = if (builtin.os.tag == .windows) "zls.exe" else "zls"; + command_buf[0] = if (builtin.target.os.tag == .windows) "zls.exe" else "zls"; // Reserve the key now so `ensureResolved` can fill it in by mutating the value *in place*. // `Client.Config` stores `initialization_options` by value, and a `std.json.ObjectMap` copy