From 35b8337ccbc84de3e7d867e3dc74d5ec1a3343ad Mon Sep 17 00:00:00 2001 From: Rene Schallner Date: Sat, 24 Feb 2024 17:26:49 +0100 Subject: [PATCH] fix announceybot templates for 0.12 --- .github/workflows/mastercheck.yml | 1 - README.md | 3 ++- doc/release-template.md | 8 ++++++-- tools/announceybot/release-announcement-template.md | 5 ++++- tools/announceybot/release-dep-update-template.md | 9 +++++++-- tools/announceybot/release-note-template.md | 8 ++++++-- 6 files changed, 25 insertions(+), 9 deletions(-) diff --git a/.github/workflows/mastercheck.yml b/.github/workflows/mastercheck.yml index 2db3b85..ac64840 100644 --- a/.github/workflows/mastercheck.yml +++ b/.github/workflows/mastercheck.yml @@ -52,7 +52,6 @@ jobs: TAG_NAME: ${{ steps.tag.outputs.version }} run: | tools/announceybot.exe update-readme "zig-0.12.0" - sed -i.bak 's/refs\/tags\///' README.md - name: Commit and push if it has changed run: | diff --git a/README.md b/README.md index 886afcc..0ede170 100644 --- a/README.md +++ b/README.md @@ -293,7 +293,8 @@ Then, in your `build.zig`'s `build` function, add the following before .optimize = optimize, .openssl = false, // set to true to enable TLS support }); - exe.addModule("zap", zap.module("zap")); + + exe.root_module.addImport("zap", zap.module("zap")); exe.linkLibrary(zap.artifact("facil.io")); ``` diff --git a/doc/release-template.md b/doc/release-template.md index e41db51..cd08a68 100644 --- a/doc/release-template.md +++ b/doc/release-template.md @@ -22,7 +22,10 @@ Here is a complete `build.zig.zon` example: .zap = .{ .url = "https://github.com/zigzap/zap/archive/refs/tags/{tag}.tar.gz", .hash = "{hash}", - } + }, + .paths = .{ + "", + }, } } @@ -35,7 +38,8 @@ Then, in your `build.zig`'s `build` function, add the following before const zap = b.dependency("zap", .{ .target = target, .optimize = optimize, + .openssl = false, // set to true to enable TLS support }); - exe.addModule("zap", zap.module("zap")); + exe.root_module.addImport("zap", zap.module("zap")); exe.linkLibrary(zap.artifact("facil.io")); ``` diff --git a/tools/announceybot/release-announcement-template.md b/tools/announceybot/release-announcement-template.md index 2275105..b06d4f2 100644 --- a/tools/announceybot/release-announcement-template.md +++ b/tools/announceybot/release-announcement-template.md @@ -18,7 +18,10 @@ Modify your `build.zig.zon` like this: .zap = .{ .url = "https://github.com/zigzap/zap/archive/refs/tags/{tag}.tar.gz", .hash = "{hash}", - } + }, + .paths = .{ + "", + }, } } diff --git a/tools/announceybot/release-dep-update-template.md b/tools/announceybot/release-dep-update-template.md index b56ee3a..de5c4c0 100644 --- a/tools/announceybot/release-dep-update-template.md +++ b/tools/announceybot/release-dep-update-template.md @@ -6,9 +6,14 @@ .dependencies = .{ // zap {tag} .zap = .{ - .url = "https://github.com/zigzap/zap/archive/refs/tags/{tag}.tar.gz", + // when tagged: + // .url = "https://github.com/zigzap/zap/archive/refs/tags/{tag}.tar.gz", + .url = "https://github.com/zigzap/zap/archive/{tag}.tar.gz", .hash = "{hash}", - } + }, + .paths = .{ + "", + }, } } ``` diff --git a/tools/announceybot/release-note-template.md b/tools/announceybot/release-note-template.md index 9b47e86..c0daba3 100644 --- a/tools/announceybot/release-note-template.md +++ b/tools/announceybot/release-note-template.md @@ -28,7 +28,10 @@ Here is a complete `build.zig.zon` example: .zap = .{ .url = "https://github.com/zigzap/zap/archive/refs/tags/{tag}.tar.gz", .hash = "{hash}", - } + }, + .paths = .{ + "", + }, } } @@ -41,7 +44,8 @@ Then, in your `build.zig`'s `build` function, add the following before const zap = b.dependency("zap", .{ .target = target, .optimize = optimize, + .openssl = false, // set to true to enable TLS support }); - exe.addModule("zap", zap.module("zap")); + exe.root_module.addImport("zap", zap.module("zap")); exe.linkLibrary(zap.artifact("facil.io")); ```