aboutsummaryrefslogtreecommitdiff
path: root/lib/init
diff options
context:
space:
mode:
authorJonathan Marler <johnnymarler@gmail.com>2024-08-17 19:29:26 -0600
committerAndrew Kelley <andrew@ziglang.org>2024-12-21 18:23:01 -0500
commit77c63ac36034db577a9287c54fb6771429a7428f (patch)
treeb18749386ae77c8dabcd1f96d42e6eb7bdc13b61 /lib/init
parent0ff0bdb4a71d8fd055272abfdadea2f23f99574a (diff)
downloadzig-77c63ac36034db577a9287c54fb6771429a7428f.tar.gz
zig-77c63ac36034db577a9287c54fb6771429a7428f.zip
doc: mention zig can't use URLs if their content changes
There's been some proliferation of dependency URLs that reference mutable data such as links to git branches that can change. This has resulted in broken projects, i.e. * https://github.com/RohanVashisht1234/raylib_rain_train/blob/9eef9de94c511f2eb4fe5db1d6abd574ee245c9b/build.zig.zon * https://github.com/rcmagic/ZigFightingGame/commit/4b64353e9c69de0fa2eb87fa9c3a3da76a8a3e7b There's also disagreement about whether it's fine for URL's to point to git branches, i.e. https://github.com/Not-Nik/raylib-zig/pull/130 This updates the docs to mention that zig won't be able to use URLs if their content changes.
Diffstat (limited to 'lib/init')
-rw-r--r--lib/init/build.zig.zon3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/init/build.zig.zon b/lib/init/build.zig.zon
index c06abec206..cb7229042f 100644
--- a/lib/init/build.zig.zon
+++ b/lib/init/build.zig.zon
@@ -27,7 +27,8 @@
//.example = .{
// // When updating this field to a new URL, be sure to delete the corresponding
// // `hash`, otherwise you are communicating that you expect to find the old hash at
- // // the new URL.
+ // // the new URL. If the contents of a URL change this will result in a hash mismatch
+ // // which will prevent zig from using it.
// .url = "https://example.com/foo.tar.gz",
//
// // This is computed from the file contents of the directory of files that is