From 5e2ed137854b627b2961613df8f7a979a9ac1844 Mon Sep 17 00:00:00 2001 From: "Jeffrey C. Ollie" Date: Sat, 3 Oct 2026 00:11:11 -0500 Subject: [PATCH] Name the package csv The package is now named for the module it provides, so a dependent writes b.dependency("csv", ...) to get dep.module("csv"). The fingerprint's checksum half covers the name and is recomputed; its id half is kept, since this is the same package renamed rather than a fork. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01425BduET4coqFEidGn2i51 --- README.md | 4 ++-- build.zig.zon | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2868ee0..a57d38b 100644 --- a/README.md +++ b/README.md @@ -48,14 +48,14 @@ zig fetch --save git+https://git.jcollie.dev/jeff/zig-csv.git#v0.3.0 ``` That records the resolved commit and hash in your `build.zig.zon` under the -name `zig_csv`. Naming a tag pins the release; leaving the `#v0.3.0` off +name `csv`. Naming a tag pins the release; leaving the `#v0.3.0` off pins whatever `main` happened to point at when you ran the command, which is rarely what you want in a committed manifest. Then wire the module up in your `build.zig`: ```zig -const csv_dep = b.dependency("zig_csv", .{ +const csv_dep = b.dependency("csv", .{ .target = target, .optimize = optimize, }); diff --git a/build.zig.zon b/build.zig.zon index 9550b72..99f3472 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -1,7 +1,7 @@ .{ - .name = .zig_csv, + .name = .csv, .version = "0.3.0", - .fingerprint = 0xb51631650614d5d2, + .fingerprint = 0x8a452570614d5d2, .minimum_zig_version = "0.17.0", .dependencies = .{}, .paths = .{ -- knotmirror 0.0.1