authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-06-05 00:37:14 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-06-05 00:37:14 -07:00
logb9c825d2e3f09d4aa99ee80e4c898cd062c20dfc
treead419df42de7ef6b4b7e4496ef1a9c07a3a988e9
parent1327c3c7840de02451bdf39b0400a966eb32e601

update to Zig release 0.8.0


4 files changed, 8 insertions(+), 8 deletions(-)

.circleci/config.yml+1-1
...@@ -15,7 +15,7 @@ jobs:...@@ -15,7 +15,7 @@ jobs:
15 - run: git submodule update --init --recursive15 - run: git submodule update --init --recursive
1616
17 - run: apt -y install xz-utils jq17 - run: apt -y install xz-utils jq
18 - run: ./download_zig.sh 0.8.0-dev.2711+11ae6c42c18 - run: ./download_zig.sh 0.8.0
19 - run: zig version19 - run: zig version
20 - run: zig env20 - run: zig env
21 - run: zig build -Dbootstrap21 - run: zig build -Dbootstrap
README.md+1-1
...@@ -17,7 +17,7 @@ A package manager for the Zig programming language....@@ -17,7 +17,7 @@ A package manager for the Zig programming language.
17- https://github.com/nektro/zigmod/releases17- https://github.com/nektro/zigmod/releases
1818
19## Built With19## Built With
20- Zig master `0.8.0-dev.2711+11ae6c42c`20- Zig master `0.8.0`
2121
22### Build from Source22### Build from Source
23Initially,23Initially,
docs/README.md+1-1
...@@ -8,7 +8,7 @@ You can learn more about Zig here:...@@ -8,7 +8,7 @@ You can learn more about Zig here:
88
9The rest of this documentation will assume you already have Zig installed.9The rest of this documentation will assume you already have Zig installed.
1010
11As Zig is still in development itself, if you plan to contribute to Zigmod you will need a master download of Zig. Those can be obtained from https://ziglang.org/download/#release-master. The most recent release Zigmod was verified to work with is `0.8.0-dev.2711+11ae6c42c`.11As Zig is still in development itself, if you plan to contribute to Zigmod you will need a master download of Zig. Those can be obtained from https://ziglang.org/download/#release-master. The most recent release Zigmod was verified to work with is `0.8.0`.
1212
13## Download13## Download
14You may download a precompiled binary from https://github.com/nektro/zigmod/releases or build the project from source.14You may download a precompiled binary from https://github.com/nektro/zigmod/releases or build the project from source.
src/cmd/license.zig+5-5
...@@ -47,20 +47,20 @@ pub fn execute(args: [][]u8) !void {...@@ -47,20 +47,20 @@ pub fn execute(args: [][]u8) !void {
47 if (!map_item.found_existing) {47 if (!map_item.found_existing) {
48 const temp = try gpa.create(List);48 const temp = try gpa.create(List);
49 temp.* = List.init(gpa);49 temp.* = List.init(gpa);
50 map_item.entry.value = temp;50 map_item.value_ptr.* = temp;
51 }51 }
52 const tracking_list = map_item.entry.value;52 const tracking_list = map_item.value_ptr.*;
53 try tracking_list.append(item);53 try tracking_list.append(item);
54 }54 }
5555
56 var iter = map.iterator();56 var iter = map.iterator();
57 while (iter.next()) |entry| {57 while (iter.next()) |entry| {
58 std.debug.print(style.Bold ++ "{s}:\n", .{entry.key});58 std.debug.print(style.Bold ++ "{s}:\n", .{entry.key_ptr.*});
59 if (get_license(entry.key)) |license| {59 if (get_license(entry.key_ptr.*)) |license| {
60 std.debug.print(style.Faint ++ "= {s}\n", .{license.url});60 std.debug.print(style.Faint ++ "= {s}\n", .{license.url});
61 }61 }
62 std.debug.print(style.ResetIntensity, .{});62 std.debug.print(style.ResetIntensity, .{});
63 for (entry.value.items) |item| {63 for (entry.value_ptr.*.items) |item| {
64 std.debug.print("- {s}\n", .{if (!std.mem.eql(u8, item.clean_path, "../..")) item.clean_path else "This"});64 std.debug.print("- {s}\n", .{if (!std.mem.eql(u8, item.clean_path, "../..")) item.clean_path else "This"});
65 }65 }
66 std.debug.print("\n", .{});66 std.debug.print("\n", .{});