aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Gauer <dave@ratfactor.com>2021-02-14 19:25:35 -0500
committerDave Gauer <dave@ratfactor.com>2021-02-14 19:25:35 -0500
commit216c01318e7666a17bcab3445ba037da867bfd87 (patch)
treefdfe0e857ccc5202d1c79a90f98d1fba3d73cc8d
parent6ccd55729e5de45524337084b03eb5a89b9f3ac1 (diff)
downloadziglings-216c01318e7666a17bcab3445ba037da867bfd87.tar.gz
ziglings-216c01318e7666a17bcab3445ba037da867bfd87.tar.bz2
ziglings-216c01318e7666a17bcab3445ba037da867bfd87.tar.xz
ziglings-216c01318e7666a17bcab3445ba037da867bfd87.zip
Attempt to make the version error and README clearer (#14)
-rw-r--r--README.md15
-rw-r--r--build.zig6
2 files changed, 13 insertions, 8 deletions
diff --git a/README.md b/README.md
index 627cd1a..fd40c72 100644
--- a/README.md
+++ b/README.md
@@ -32,7 +32,7 @@ Verify the installation and version of `zig` like so:
```bash
$ zig version
-0.8.0-dev.1065+<some hexadecimal string>
+0.8.0-dev.1065+xxxxxxxxx
```
Clone this repository with Git:
@@ -52,14 +52,15 @@ $ zig build
The Zig language is under very active development. Ziglings will attempt to
be current, but not bleeding-edge. However, sometimes fundamental changes
-will happen. Ziglings will check for a minimum version and build number
-(which is this one: `0.x.x-dev.<build number>`) and exit if your version of
-Zig is too old. It is likely that you'll download a build which is greater
-than the number in the example shown above in this README. That's okay!
+will happen. Ziglings will check for a minimum version and build number.
+
+(See Getting Started above for the current minimum.)
+
+It is likely that you'll download a build which is _greater_ than the minimum.
Once you have a version of the Zig compiler that works with your copy of
-Ziglings, they'll continue to work together forever. But if you update one,
-keep in mind that you may need to also update the other.
+Ziglings, they'll continue to work together. But if you update one, you may
+need to also update the other.
## Advanced Usage
diff --git a/build.zig b/build.zig
index a9c4783..878de7e 100644
--- a/build.zig
+++ b/build.zig
@@ -271,7 +271,11 @@ pub fn build(b: *Builder) void {
// very old versions of Zig used warn instead of print.
const stderrPrintFn = if (@hasDecl(std.debug, "print")) std.debug.print else std.debug.warn;
stderrPrintFn(
- \\Error: Your version of zig is too old. Please download a master build from
+ \\ERROR: Sorry, it looks like your version of zig is too old. :-(
+ \\
+ \\The README lists the minimum version and build number.
+ \\
+ \\Please download a master build from
\\https://ziglang.org/download/
\\
, .{});