Giter Club home page Giter Club logo

asdf-v's People

Contributors

ndac-todoroki avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

asdf-v's Issues

Older V does not compile

asdf install v 0.1.7 works while 0.1.6 0.1.5 does not. (0.1.7 is the latest now)
This may be happening because asdf-v uses the newest v.c in git, but V is currently drastically changing and could be introducing breaking changes to the compiler.

Although, vlang/vc doesn't keep v.cs in releases, so it is a bit hard to get the latest v.c of the given version. (It could be done from the commits https://github.com/vlang/vc/commits/master, but you need to parse all the commit messages.)
There are limits to the github api too.

asdf install v 0.1.17 does not work

I tried to open the url showed in the output in browser and I got an 404, (url:https://github.com/vlang/v/archive/v0.1.17.tar.gz), only asdf install v ref:0.1.17 works properly.

vlang/vc is gone :(

https://github.com/vlang/vc seems to be depracated now :( see: vlang/vc@2029a40

Now how should we get v.c when compiling by targeting ref:some-commit?
I can't assure if the 0.1.0's v.c (at the release pages) could be used in git master in the futures too.
Also, getting v.c from the latest github release leads to instability, because we can't be sure if the latest release will always include v.c.
And parsing JSON in shellscripts couldn't be written clean.

The problem for now is: Any installations targeting ref:foo would not build.

Better ways to sort versions

Currently asdf-v is using the sorting algorithm used in asdf-ruby, but since v changed the naming sequences of the releases (vX.Y.Z to X.Y.Z), the sort isn't correct. This causes the CI test to fail.

Not able to install V 0.1.21

Steps to reproduce

asdf install v 0.1.21
==> Checking whether specified V release/reference exists...
==> Downloading 0.1.21 to /tmp/v_build_S9kr9w/v-version-0.1.21-src.tar.gz from https://github.com/vlang/v/archive/0.1.21.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   115    0   115    0     0    129      0 --:--:-- --:--:-- --:--:--   129
100 1444k    0 1444k    0     0  45631      0 --:--:--  0:00:32 --:--:-- 69319
==> Copying release into place
==> Checking whether specified release/reference containing v.c exists...
==> Downloading 0.1.21 to /tmp/v_build_S9kr9w/v-version-0.1.21-v.c from https://github.com/vlang/vc/archive/0.1.21.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   116    0   116    0     0     12      0 --:--:--  0:00:09 --:--:--    29
100    15  100    15    0     0      1      0  0:00:15  0:00:11  0:00:04    22

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now

Expected behavior

vlang should have been installed
Actual behavior

vlang should have been installed from tar.gz file but it expects zip format for extraction and installation
Environment

OS: ubuntu

Linux 5.0.0-32-generic #34-Ubuntu

asdf version:

โžœ asdf version
version: v0.7.4

support ~/.vlang/VROOT

v installer now created ~/.vlang/VROOT when there aren't any VROOT files found there.
This points to the installation path.
If this have something to do with executing v, we need to modify it.

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.