Skip to content

Commit dc6cb2d

Browse files
authored
Merge pull request #564 from ziglang/many-mirrors
Add several mirrors
2 parents a97acc0 + 9b56927 commit dc6cb2d

File tree

4 files changed

+24
-4
lines changed

4 files changed

+24
-4
lines changed

.github/workflows/check-mirrors.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ jobs:
1616
# ziglang.org. This is **not** a recommended strategy for most users, but rather a special
1717
# case due to the role this repository plays in maintaining the mirror list.
1818
run: |
19-
curl -L 'https://ziglang.org/download/0.15.1/zig-x86_64-linux-0.15.1.tar.xz' | tar -xJ
20-
mv 'zig-x86_64-linux-0.15.1' zig
19+
curl -L 'https://ziglang.org/download/0.15.2/zig-x86_64-linux-0.15.2.tar.xz' | tar -xJ
20+
mv 'zig-x86_64-linux-0.15.2' zig
2121
echo "$PWD/zig" >>"$GITHUB_PATH"
2222
2323
- name: Check Mirrors

MIRRORS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ The following rules define how a mirror works and the requirements it is expecte
3232
* Otherwise, the mirror **must** return the tarball.
3333
* These requirements apply equally to source tarballs (e.g. `zig-0.15.0-dev.671+c907866d5.tar.xz`), bootstrap source tarballs (e.g. `zig-bootstrap-0.15.0-dev.671+c907866d5.tar.xz`), and binary tarballs (e.g. `zig-x86_64-linux-0.15.0-dev.671+c907866d5.tar.xz`).
3434
* Files provided by the mirror **must** be bit-for-bit identical to their `https://ziglang.org/` counterparts.
35-
* If a mirror is required to serve a tarball which is has not yet cached locally, it **must** immediately download it from its source at `https://ziglang.org/`, and respond with that downloaded file.
35+
* If a mirror is required to serve a tarball which it has not yet cached locally, it **must** immediately download it from its source at `https://ziglang.org/`, and respond with that downloaded file.
3636
* If the request to `https://ziglang.org/` fails in any way, including timing out after a reasonable time period (a suggested timeout is two times the standard tarball download time for this mirror), then the mirror **should** (but is not required to) respond with 504 Gateway Timeout. The intention is to inform the client that the issue does not lie with this mirror, but rather with `https://ziglang.org/` itself.
3737
* The mirror **may** rate-limit accesses. If an access failed due to rate-limiting, the mirror **should** respond with 429 Too Many Requests.
3838
* The mirror **may** undergo maintenance, upgrades, and other scheduled downtime. If an access fails for this reason, where possible, the mirror **should** respond with 503 Unavailable. The mirror **should** try to minimize such downtime.

assets/community-mirrors.ziggy

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,24 @@
3434
.username = "meox",
3535
.email = "[email protected]",
3636
},
37+
{
38+
.url = "https://ziglang.freetls.fastly.net",
39+
.username = "jedisct1",
40+
.email = "[email protected]",
41+
},
42+
{
43+
.url = "https://zig.tilok.dev",
44+
.username = "tilo-k",
45+
.email = "[email protected]",
46+
},
47+
{
48+
.url = "https://zig-mirror.tsimnet.eu/zig",
49+
.username = "dasimmet",
50+
.email = "[email protected]",
51+
},
52+
{
53+
.url = "https://zig.karearl.com/zig",
54+
.username = "karearl",
55+
.email = "[email protected]",
56+
},
3757
]

check-mirrors/build.zig.zon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
.name = .check_mirrors,
33
.version = "0.0.0",
44
.fingerprint = 0xcb408e1ecbee16fd, // Changing this has security and trust implications.
5-
.minimum_zig_version = "0.15.1",
5+
.minimum_zig_version = "0.15.2",
66
.dependencies = .{
77
.ziggy = .{
88
.url = "git+https://github.com/kristoff-it/ziggy#4353b20ef2ac750e35c6d68e4eb2a07c2d7cf901",

0 commit comments

Comments
 (0)