Coder Social home page Coder Social logo

asdf-zig's People

Contributors

cheetah avatar dependabot[bot] avatar kachick avatar msantos avatar pdecat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

asdf-zig's Issues

Installing the latest release fails

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.

Unable to install zig-lang on Alpine Linux

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.

Failure to detect latest master release?

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?

lack of quoting in scripts leading to errors with spaces in paths

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"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.