cheetah / asdf-zig Goto Github PK
View Code? Open in Web Editor NEWzig plugin for asdf version manager https://github.com/asdf-vm/asdf
License: MIT License
zig plugin for asdf version manager https://github.com/asdf-vm/asdf
License: MIT License
There is an issue when trying to install the latest zig release via the asdf plugin. As the master url is also named 0.5.0 the sed in the get_url returns two urls. This causes the curl to fail downloading the right file.
I had no problems on installing the asdf-zig plugin except I've got the following error on installing any version of zig:
$ asdf install zig 0.11.0
mktemp: Invalid argument
Downloading https://ziglang.org/download/0.11.0/zig-linux-x86_64-0.11.0.tar.xz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: Failed to open the file /archive: Permission denied
0 42.8M 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (23) Failure writing output to destination
Investigating more on the issue, the problem is the busybox's flavour of mktemp
. The fix is simple, replace asdf-zig.XXXX
with asdf-zig.XXXXXX
from the asdf-zig/tree/master/bin/install
script. This change works fine on another machine with Ubuntu Linux inside.
Plugin does not work with mise
See jdx/mise#1560
Attempting to upgrade using asdf install zig master
but I just get a message saying that zig master is already installed
. As of today, the latest available version is 0.10.0-dev.2977+7d2e14267
while I'm currently on 0.10.0-dev.237+ada8e1713
. My understanding is that this plugin uses the official zig repo to check which version is available as opposed to resolving some other hosted third-party platform that needs updating (*cough* homebrew *cough*). Is it reasonable to suggest that there's something unexpected happening in the version detection?
Looks like tarballs are now being created for master branch, just not shown on the downloads page quiet yet.
ref: ziglang/zig#8149
Example:
% rtx install zig@latest
[WARN] failed to resolve tool version: Failed listing remote versions for plugin zig: error running list-all: exited with code 1
/Users/user/Library/Application Support/rtx/plugins/zig/bin/list-all: line 4: /Users/user/Library
Support/rtx/plugins/zig/bin/utils: No such file or directory
rtx Failed listing remote versions for plugin zig: error running list-all: exited with code 1
/Users/user/Library/Application Support/rtx/plugins/zig/bin/list-all: line 4: /Users/user/Library
Support/rtx/plugins/zig/bin/utils: No such file or directory
rtx Run with RTX_DEBUG=1 for more information
Partial fix (ran into some additional quoting errors after this as well):
# bin/install
-source $(dirname $0)/utils
+source "$(dirname "$0")/utils"
# bin/list-all
-source $(dirname $0)/utils
+source "$(dirname "$0")/utils"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.