From 2c3a6880a9bbbbb200a13d0d3302465726c5b6a4 Mon Sep 17 00:00:00 2001 From: Chip Collier Date: Mon, 10 Jun 2024 15:00:36 +0200 Subject: [PATCH] Updating README; Update version for another release. --- README.md | 4 +++- src/main.zig | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2ad0b3a..6e7968e 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ If you build a debug version there will be some extra logging output that you wo In this mode, ziege is a proxy for a specific zig release. This mode is activated when ziege is named 'zig' (either via a symlink or by making a copy), or if you run ziege with the `+zig` launcher arg. -Ziege will try and determine the zig version to proxy by reading a file named `.zigversion` in the current working directory. If that is not found *ziege will create this file and use the current nightly version of zig*. +Ziege will try and determine the zig version to proxy by reading a file named `.zigversion` in the current working directory. If that is not found *ziege will use the current nightly version of zig*. You can override this version by using a "launcher arg": @@ -81,6 +81,8 @@ In the event you want to always use this version you can have ziege update your zig +set-version=0.12.0 build run ``` +It is also possible to set the version or override `.zigversion` with the environment variable `ZIG_VERSION`. And zeige will set that env var with running zig or zls so that any call to zig as a child process that relies on finding zig in PATH will end up using the correct version (which appears to happen for 'zig build' dependencies specified as paths in build.zig.zon). + In all cases, if the resolved version isn't found then it will be downloaded first. ### Zls mode diff --git a/src/main.zig b/src/main.zig index 1665b2b..6a9f84c 100644 --- a/src/main.zig +++ b/src/main.zig @@ -20,7 +20,7 @@ const ReleaseManager = @import("./release_manager.zig").ReleaseManager; const log = globals.log; -const VERSION = "0.3.0-dev"; +const VERSION = "0.3.0"; //-----------------------------------------------------------------------------