Please remove provides=('zig')
and conflicts=('zig')
. Currently, this implies
that the package is a direct drop-in replacement for zig
, which is not the case.
If you install zigup-bin
and run zig
, you will get:
$ zig
bash: zig: command not found
As a result, packages that depend on zig
cannot be built without manual
intervention. Arguably, anyzig
, a replacement for zigup
, kind of provides zig
,
but only when run from within the source directory, which is not always the case.
zigup
, on the other hand, does not implement this behavior at all.
To address this, I have created anyzig-zig*
and zigup-zig*
, which
are shell wrapper scripts that invoke their respective backends with a specified
version of zig
.
Pinned Comments
SpieringsAE commented on 2024-05-07 19:19 (UTC) (edited on 2024-05-07 19:19 (UTC) by SpieringsAE)
As a hint to everyone using this, it will not work out of the box, it will try to symlink the selected zig compiler to /usr/bin/ which you dont have permission for likely, I set up an alias which always sets the --path-link option to a folder thats on the $PATH that I have regular access to.I have $HOME/.local/bin on my path so something like:
alias zigup="zigup --path-link $HOME/.local/bin/zig"
in your .bashrc or whatever shell you use will help with this.