View Source mix zig.get (zig_get v0.14.0)

obtains the Zig compiler toolchain

$ mix zig.get [--version VERSION] [--from FROM] [--os OS] [--arch ARCH] [other options]

the zigler compiler will be downloaded to ZIG_ARCHIVE_PATH/VERSION

if unspecified, VERSION defaults to 0.14.0.

if FROM is specified, will use the FROM file instead of getting from the internet.

if unspecified, ZIG_ARCHIVE_PATH defaults to the user cache path given by :filename.basedir/3 with application name "zigler".

OS and ARCH will be detected from the current build system. It's not recommended to change these arguments.

environment variable options

  • TAR_COMMAND: path to a tar executable that is equivalent to gnu tar. only useful for non-windows architectures.
  • ZIG_ARCHIVE_PATH: path to desired directory to achive the zig compiler toolchain.

other options

  • --force overwrites the existing installation if it exists.
  • --disable-verify disables the hash verification of the downloaded file. it's possible that the manifest at https://ziglang.org/download/index.json

Summary

Functions

Callback implementation for Mix.Task.run/1.