Skip to content

Commit 864fc82

Browse files
committed
Dockerfile, tests: bump Zig from 0.13.0 to 0.14.1
Zig 0.14.1 was released on 2025-05-21. See the release notes for Zig 0.14.0 [1]. Also reflect the change to the release archive naming pattern from the 0.14.1 release [2]. [1] https://ziglang.org/download/0.14.0/release-notes.html [2] https://ziglang.org/download/
1 parent a1c2390 commit 864fc82

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ ARG REPO=alpine
22
ARG IMAGE=3.20.0@sha256:77726ef6b57ddf65bb551896826ec38bc3e53f75cdde31354fbffb4f25238ebd
33
FROM ${REPO}:${IMAGE} AS builder
44

5-
ARG VERSION=0.13.0
6-
ARG RELEASE=zig-linux-x86_64-${VERSION}
5+
ARG VERSION=0.14.1
6+
ARG RELEASE=zig-x86_64-linux-${VERSION}
77

88
# We can't reliably pin the package versions on Alpine, so we ignore the linter warning.
99
# See https://gitlab.alpinelinux.org/alpine/abuild/-/issues/9996
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"version": 1,
33
"status": "fail",
4-
"message": "1/9 test_example_all_fail.test.year not divisible by 4 in common year...FAIL (TestUnexpectedResult)\n/opt/zig/lib/std/testing.zig:540:14: <MEMHASH>f in expect (test)\n if (!ok) return error.TestUnexpectedResult;\n ^\n/tmp/exercism-zig-test-runner/example-all-fail/test_example_all_fail.zig:7:5: <MEMHASH>6 in test.year not divisible by 4 in common year (test)\n try testing.expect(!leap.leap(2015));\n ^\n2/9 test_example_all_fail.test.year divisible by 2, not divisible by 4 in common year...FAIL (TestUnexpectedResult)\n/opt/zig/lib/std/testing.zig:540:14: <MEMHASH>f in expect (test)\n if (!ok) return error.TestUnexpectedResult;\n ^\n/tmp/exercism-zig-test-runner/example-all-fail/test_example_all_fail.zig:11:5: <MEMHASH>6 in test.year divisible by 2, not divisible by 4 in common year (test)\n try testing.expect(!leap.leap(1970));\n ^\n3/9 test_example_all_fail.test.year divisible by 4, not divisible by 100 in leap year...FAIL (TestUnexpectedResult)\n/opt/zig/lib/std/testing.zig:540:14: <MEMHASH>f in expect (test)\n if (!ok) return error.TestUnexpectedResult;\n ^\n/tmp/exercism-zig-test-runner/example-all-fail/test_example_all_fail.zig:15:5: <MEMHASH>4 in test.year divisible by 4, not divisible by 100 in leap year (test)\n try testing.expect(leap.leap(1996));\n ^\n4/9 test_example_all_fail.test.year divisible by 4 and 5 is still a leap year...FAIL (TestUnexpectedResult)\n/opt/zig/lib/std/testing.zig:540:14: <MEMHASH>f in expect (test)\n if (!ok) return error.TestUnexpectedResult;\n ^\n/tmp/exercism-zig-test-runner/example-all-fail/test_example_all_fail.zig:19:5: <MEMHASH>4 in test.year divisible by 4 and 5 is still a leap year (test)\n try testing.expect(leap.leap(1960));\n ^\n5/9 test_example_all_fail.test.year divisible by 100, not divisible by 400 in common year...FAIL (TestUnexpectedResult)\n/opt/zig/lib/std/testing.zig:540:14: <MEMHASH>f in expect (test)\n if (!ok) return error.TestUnexpectedResult;\n ^\n/tmp/exercism-zig-test-runner/example-all-fail/test_example_all_fail.zig:23:5: <MEMHASH>6 in test.year divisible by 100, not divisible by 400 in common year (test)\n try testing.expect(!leap.leap(2100));\n ^\n6/9 test_example_all_fail.test.year divisible by 100 but not by 3 is still not a leap year...FAIL (TestUnexpectedResult)\n/opt/zig/lib/std/testing.zig:540:14: <MEMHASH>f in expect (test)\n if (!ok) return error.TestUnexpectedResult;\n ^\n/tmp/exercism-zig-test-runner/example-all-fail/test_example_all_fail.zig:27:5: <MEMHASH>6 in test.year divisible by 100 but not by 3 is still not a leap year (test)\n try testing.expect(!leap.leap(1900));\n ^\n7/9 test_example_all_fail.test.year divisible by 400 is leap year...FAIL (TestUnexpectedResult)\n/opt/zig/lib/std/testing.zig:540:14: <MEMHASH>f in expect (test)\n if (!ok) return error.TestUnexpectedResult;\n ^\n/tmp/exercism-zig-test-runner/example-all-fail/test_example_all_fail.zig:31:5: <MEMHASH>4 in test.year divisible by 400 is leap year (test)\n try testing.expect(leap.leap(2000));\n ^\n8/9 test_example_all_fail.test.year divisible by 400 but not by 125 is still a leap year...FAIL (TestUnexpectedResult)\n/opt/zig/lib/std/testing.zig:540:14: <MEMHASH>f in expect (test)\n if (!ok) return error.TestUnexpectedResult;\n ^\n/tmp/exercism-zig-test-runner/example-all-fail/test_example_all_fail.zig:35:5: <MEMHASH>4 in test.year divisible by 400 but not by 125 is still a leap year (test)\n try testing.expect(leap.leap(2400));\n ^\n9/9 test_example_all_fail.test.year divisible by 200, not divisible by 400 in common year...FAIL (TestUnexpectedResult)\n/opt/zig/lib/std/testing.zig:540:14: <MEMHASH>f in expect (test)\n if (!ok) return error.TestUnexpectedResult;\n ^\n/tmp/exercism-zig-test-runner/example-all-fail/test_example_all_fail.zig:39:5: <MEMHASH>6 in test.year divisible by 200, not divisible by 400 in common year (test)\n try testing.expect(!leap.leap(1800));\n ^\n0 passed; 0 skipped; 9 failed."
4+
"message": "1/9 test_example_all_fail.test.year not divisible by 4 in common year...FAIL (TestUnexpectedResult)\n/opt/zig/lib/std/testing.zig:580:14: <MEMHASH>f in expect (test)\n if (!ok) return error.TestUnexpectedResult;\n ^\n/tmp/exercism-zig-test-runner/example-all-fail/test_example_all_fail.zig:7:5: <MEMHASH>6 in test.year not divisible by 4 in common year (test)\n try testing.expect(!leap.leap(2015));\n ^\n2/9 test_example_all_fail.test.year divisible by 2, not divisible by 4 in common year...FAIL (TestUnexpectedResult)\n/opt/zig/lib/std/testing.zig:580:14: <MEMHASH>f in expect (test)\n if (!ok) return error.TestUnexpectedResult;\n ^\n/tmp/exercism-zig-test-runner/example-all-fail/test_example_all_fail.zig:11:5: <MEMHASH>6 in test.year divisible by 2, not divisible by 4 in common year (test)\n try testing.expect(!leap.leap(1970));\n ^\n3/9 test_example_all_fail.test.year divisible by 4, not divisible by 100 in leap year...FAIL (TestUnexpectedResult)\n/opt/zig/lib/std/testing.zig:580:14: <MEMHASH>f in expect (test)\n if (!ok) return error.TestUnexpectedResult;\n ^\n/tmp/exercism-zig-test-runner/example-all-fail/test_example_all_fail.zig:15:5: <MEMHASH>4 in test.year divisible by 4, not divisible by 100 in leap year (test)\n try testing.expect(leap.leap(1996));\n ^\n4/9 test_example_all_fail.test.year divisible by 4 and 5 is still a leap year...FAIL (TestUnexpectedResult)\n/opt/zig/lib/std/testing.zig:580:14: <MEMHASH>f in expect (test)\n if (!ok) return error.TestUnexpectedResult;\n ^\n/tmp/exercism-zig-test-runner/example-all-fail/test_example_all_fail.zig:19:5: <MEMHASH>4 in test.year divisible by 4 and 5 is still a leap year (test)\n try testing.expect(leap.leap(1960));\n ^\n5/9 test_example_all_fail.test.year divisible by 100, not divisible by 400 in common year...FAIL (TestUnexpectedResult)\n/opt/zig/lib/std/testing.zig:580:14: <MEMHASH>f in expect (test)\n if (!ok) return error.TestUnexpectedResult;\n ^\n/tmp/exercism-zig-test-runner/example-all-fail/test_example_all_fail.zig:23:5: <MEMHASH>6 in test.year divisible by 100, not divisible by 400 in common year (test)\n try testing.expect(!leap.leap(2100));\n ^\n6/9 test_example_all_fail.test.year divisible by 100 but not by 3 is still not a leap year...FAIL (TestUnexpectedResult)\n/opt/zig/lib/std/testing.zig:580:14: <MEMHASH>f in expect (test)\n if (!ok) return error.TestUnexpectedResult;\n ^\n/tmp/exercism-zig-test-runner/example-all-fail/test_example_all_fail.zig:27:5: <MEMHASH>6 in test.year divisible by 100 but not by 3 is still not a leap year (test)\n try testing.expect(!leap.leap(1900));\n ^\n7/9 test_example_all_fail.test.year divisible by 400 is leap year...FAIL (TestUnexpectedResult)\n/opt/zig/lib/std/testing.zig:580:14: <MEMHASH>f in expect (test)\n if (!ok) return error.TestUnexpectedResult;\n ^\n/tmp/exercism-zig-test-runner/example-all-fail/test_example_all_fail.zig:31:5: <MEMHASH>4 in test.year divisible by 400 is leap year (test)\n try testing.expect(leap.leap(2000));\n ^\n8/9 test_example_all_fail.test.year divisible by 400 but not by 125 is still a leap year...FAIL (TestUnexpectedResult)\n/opt/zig/lib/std/testing.zig:580:14: <MEMHASH>f in expect (test)\n if (!ok) return error.TestUnexpectedResult;\n ^\n/tmp/exercism-zig-test-runner/example-all-fail/test_example_all_fail.zig:35:5: <MEMHASH>4 in test.year divisible by 400 but not by 125 is still a leap year (test)\n try testing.expect(leap.leap(2400));\n ^\n9/9 test_example_all_fail.test.year divisible by 200, not divisible by 400 in common year...FAIL (TestUnexpectedResult)\n/opt/zig/lib/std/testing.zig:580:14: <MEMHASH>f in expect (test)\n if (!ok) return error.TestUnexpectedResult;\n ^\n/tmp/exercism-zig-test-runner/example-all-fail/test_example_all_fail.zig:39:5: <MEMHASH>6 in test.year divisible by 200, not divisible by 400 in common year (test)\n try testing.expect(!leap.leap(1800));\n ^\n0 passed; 0 skipped; 9 failed."
55
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"version": 1,
33
"status": "error",
4-
"message": "test_example_empty_file.zig:7:29: error: root struct of file 'example_empty_file' has no member named 'leap'\nexample_empty_file.zig:1:1: note: struct declared here\ntest_example_empty_file.zig:11:29: error: root struct of file 'example_empty_file' has no member named 'leap'\nexample_empty_file.zig:1:1: note: struct declared here\ntest_example_empty_file.zig:15:28: error: root struct of file 'example_empty_file' has no member named 'leap'\nexample_empty_file.zig:1:1: note: struct declared here\ntest_example_empty_file.zig:19:28: error: root struct of file 'example_empty_file' has no member named 'leap'\nexample_empty_file.zig:1:1: note: struct declared here\ntest_example_empty_file.zig:23:29: error: root struct of file 'example_empty_file' has no member named 'leap'\nexample_empty_file.zig:1:1: note: struct declared here\ntest_example_empty_file.zig:27:29: error: root struct of file 'example_empty_file' has no member named 'leap'\nexample_empty_file.zig:1:1: note: struct declared here\ntest_example_empty_file.zig:31:28: error: root struct of file 'example_empty_file' has no member named 'leap'\nexample_empty_file.zig:1:1: note: struct declared here\ntest_example_empty_file.zig:35:28: error: root struct of file 'example_empty_file' has no member named 'leap'\nexample_empty_file.zig:1:1: note: struct declared here\ntest_example_empty_file.zig:39:29: error: root struct of file 'example_empty_file' has no member named 'leap'\nexample_empty_file.zig:1:1: note: struct declared here"
4+
"message": "test_example_empty_file.zig:7:29: error: root source file struct 'example_empty_file' has no member named 'leap'\n try testing.expect(!leap.leap(2015));\n ~~~~^~~~~\nexample_empty_file.zig:1:1: note: struct declared here\n\n^\ntest_example_empty_file.zig:11:29: error: root source file struct 'example_empty_file' has no member named 'leap'\n try testing.expect(!leap.leap(1970));\n ~~~~^~~~~\nexample_empty_file.zig:1:1: note: struct declared here\n\n^\ntest_example_empty_file.zig:15:28: error: root source file struct 'example_empty_file' has no member named 'leap'\n try testing.expect(leap.leap(1996));\n ~~~~^~~~~\nexample_empty_file.zig:1:1: note: struct declared here\n\n^\ntest_example_empty_file.zig:19:28: error: root source file struct 'example_empty_file' has no member named 'leap'\n try testing.expect(leap.leap(1960));\n ~~~~^~~~~\nexample_empty_file.zig:1:1: note: struct declared here\n\n^\ntest_example_empty_file.zig:23:29: error: root source file struct 'example_empty_file' has no member named 'leap'\n try testing.expect(!leap.leap(2100));\n ~~~~^~~~~\nexample_empty_file.zig:1:1: note: struct declared here\n\n^\ntest_example_empty_file.zig:27:29: error: root source file struct 'example_empty_file' has no member named 'leap'\n try testing.expect(!leap.leap(1900));\n ~~~~^~~~~\nexample_empty_file.zig:1:1: note: struct declared here\n\n^\ntest_example_empty_file.zig:31:28: error: root source file struct 'example_empty_file' has no member named 'leap'\n try testing.expect(leap.leap(2000));\n ~~~~^~~~~\nexample_empty_file.zig:1:1: note: struct declared here\n\n^\ntest_example_empty_file.zig:35:28: error: root source file struct 'example_empty_file' has no member named 'leap'\n try testing.expect(leap.leap(2400));\n ~~~~^~~~~\nexample_empty_file.zig:1:1: note: struct declared here\n\n^\ntest_example_empty_file.zig:39:29: error: root source file struct 'example_empty_file' has no member named 'leap'\n try testing.expect(!leap.leap(1800));\n ~~~~^~~~~\nexample_empty_file.zig:1:1: note: struct declared here\n\n^"
55
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"version": 1,
33
"status": "fail",
4-
"message": "1/9 test_example_partial_fail.test.year not divisible by 4 in common year...OK\n2/9 test_example_partial_fail.test.year divisible by 2, not divisible by 4 in common year...OK\n3/9 test_example_partial_fail.test.year divisible by 4, not divisible by 100 in leap year...OK\n4/9 test_example_partial_fail.test.year divisible by 4 and 5 is still a leap year...OK\n5/9 test_example_partial_fail.test.year divisible by 100, not divisible by 400 in common year...FAIL (TestUnexpectedResult)\n/opt/zig/lib/std/testing.zig:540:14: <MEMHASH>f in expect (test)\n if (!ok) return error.TestUnexpectedResult;\n ^\n/tmp/exercism-zig-test-runner/example-partial-fail/test_example_partial_fail.zig:23:5: <MEMHASH>6 in test.year divisible by 100, not divisible by 400 in common year (test)\n try testing.expect(!leap.leap(2100));\n ^\n6/9 test_example_partial_fail.test.year divisible by 100 but not by 3 is still not a leap year...FAIL (TestUnexpectedResult)\n/opt/zig/lib/std/testing.zig:540:14: <MEMHASH>f in expect (test)\n if (!ok) return error.TestUnexpectedResult;\n ^\n/tmp/exercism-zig-test-runner/example-partial-fail/test_example_partial_fail.zig:27:5: <MEMHASH>6 in test.year divisible by 100 but not by 3 is still not a leap year (test)\n try testing.expect(!leap.leap(1900));\n ^\n7/9 test_example_partial_fail.test.year divisible by 400 is leap year...OK\n8/9 test_example_partial_fail.test.year divisible by 400 but not by 125 is still a leap year...OK\n9/9 test_example_partial_fail.test.year divisible by 200, not divisible by 400 in common year...FAIL (TestUnexpectedResult)\n/opt/zig/lib/std/testing.zig:540:14: <MEMHASH>f in expect (test)\n if (!ok) return error.TestUnexpectedResult;\n ^\n/tmp/exercism-zig-test-runner/example-partial-fail/test_example_partial_fail.zig:39:5: <MEMHASH>6 in test.year divisible by 200, not divisible by 400 in common year (test)\n try testing.expect(!leap.leap(1800));\n ^\n6 passed; 0 skipped; 3 failed."
4+
"message": "1/9 test_example_partial_fail.test.year not divisible by 4 in common year...OK\n2/9 test_example_partial_fail.test.year divisible by 2, not divisible by 4 in common year...OK\n3/9 test_example_partial_fail.test.year divisible by 4, not divisible by 100 in leap year...OK\n4/9 test_example_partial_fail.test.year divisible by 4 and 5 is still a leap year...OK\n5/9 test_example_partial_fail.test.year divisible by 100, not divisible by 400 in common year...FAIL (TestUnexpectedResult)\n/opt/zig/lib/std/testing.zig:580:14: <MEMHASH>f in expect (test)\n if (!ok) return error.TestUnexpectedResult;\n ^\n/tmp/exercism-zig-test-runner/example-partial-fail/test_example_partial_fail.zig:23:5: <MEMHASH>6 in test.year divisible by 100, not divisible by 400 in common year (test)\n try testing.expect(!leap.leap(2100));\n ^\n6/9 test_example_partial_fail.test.year divisible by 100 but not by 3 is still not a leap year...FAIL (TestUnexpectedResult)\n/opt/zig/lib/std/testing.zig:580:14: <MEMHASH>f in expect (test)\n if (!ok) return error.TestUnexpectedResult;\n ^\n/tmp/exercism-zig-test-runner/example-partial-fail/test_example_partial_fail.zig:27:5: <MEMHASH>6 in test.year divisible by 100 but not by 3 is still not a leap year (test)\n try testing.expect(!leap.leap(1900));\n ^\n7/9 test_example_partial_fail.test.year divisible by 400 is leap year...OK\n8/9 test_example_partial_fail.test.year divisible by 400 but not by 125 is still a leap year...OK\n9/9 test_example_partial_fail.test.year divisible by 200, not divisible by 400 in common year...FAIL (TestUnexpectedResult)\n/opt/zig/lib/std/testing.zig:580:14: <MEMHASH>f in expect (test)\n if (!ok) return error.TestUnexpectedResult;\n ^\n/tmp/exercism-zig-test-runner/example-partial-fail/test_example_partial_fail.zig:39:5: <MEMHASH>6 in test.year divisible by 200, not divisible by 400 in common year (test)\n try testing.expect(!leap.leap(1800));\n ^\n6 passed; 0 skipped; 3 failed."
55
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"version": 1,
33
"status": "error",
4-
"message": "example_syntax_error.zig:1:16: error: expected '(', found '^'"
4+
"message": "example_syntax_error.zig:1:16: error: expected '(', found '^'\npub fn leap1236^&gv13n\n ^"
55
}

0 commit comments

Comments
 (0)