Git Product home page Git Product logo

asdf-v's Introduction

asdf-v Test Lint

V plugin for asdf version manager allowing you to pin v versions for each V project.

Contents

Dependencies

Are tracked in lib/dependencies.txt and checked on installation of plugin. The core dependencies are: git, make, curl.

Install

Plugin:

asdf plugin add v https://github.com/jthegedus/asdf-v

V:

asdf install v latest

Set global version:

asdf global v latest

These commands also apply to asdf local v <version>.

Contributing

Contributions of any kind welcome! See the contributing guide.

Thanks goes to these contributors!

License

MIT License ยฉ James Hegedus

asdf-v's People

Contributors

dependabot[bot] avatar github-actions[bot] avatar jthegedus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

asdf-v's Issues

feat: rewrite in V itself and store bins in repo

Is your feature request related to a problem? Please describe.

Writing this plugin in V would be very cool. Good to practice my skills. Additionally we can test asdf core's ability to run non-bash plugins

Describe the solution you'd like

Write this in V

Describe alternatives you've considered

Not doing this, who has the time? ๐Ÿ˜œ

Additional context

Storing binaries in the Git repo is going to be the worst aspect of this, but unfortunately the core does not have another way to download plugins atm

Error installing version 0.3.2

Describe the bug

There is a compilation error while trying to install version 0.3.2.

This is what I have installed for the V plugin:

$ uname --all 
Linux uplink 5.15.81-1-lts #1 SMP Fri, 02 Dec 2022 21:05:15 +0000 x86_64 GNU/Linux

$ asdf plugin list --urls 
...
v                            https://github.com/jthegedus/asdf-v

$ asdf --version 
v0.11.0-6a4f51a

Steps to reproduce

$ asdf install v 0.3.2 
* Downloading [email protected]
* Downloaded to /home/x80486/asdf/installs/v/0.3.2
* Building [email protected] from source
vlib/rand/constants/constants.v:6:19: error: overflow in implicit type `int`, use explicit type casting instead
    4 | pub const (
    5 |     lower_mask     = u64(0x00000000FFFFFFFF)
    6 |     max_u32        = 0xFFFFFFFF
      |                      ~~~~~~~~~~
    7 |     max_u64        = u64(0xFFFFFFFFFFFFFFFF)
    8 |     max_u32_as_f32 = f32(max_u32) + 1
make: *** [GNUmakefile:109: all] Error 1
* ERROR: asdf-v Could not compile [email protected]
* ERROR: asdf-v An error ocurred while installing [email protected]

Expected behavior

To be able to install V.

Additional context

I'm not sure if it makes more sense to download anything that could be "temporary" to /tmp instead, and if successful, copy over to the desired location(s).

refactor: install binaries instead of building from source

Is your feature request related to a problem? Please describe.

Building from source is unreliable.

Describe the solution you'd like

Prefer binary install

Describe alternatives you've considered

I tried fixing the tests in the repo which assert the installation from source to no avail.

Additional context

Ughhh

feat: support query on latest-stable cmd eg: `asdf latest v weekly`

Describe the problem

asdf latest v weekly returns the result of asdf latest v as the query string of weekly is ignored.

Describe the proposed solution

Use the query string in the fetch of the latest for that version.

Alternatives considered

NA

Importance

nice to have

Additional Information

No response

Unable to install `weekly.2023.01`

Describe the bug

I'm trying to install the latest version and now I'm getting this error message:

[x80486@uplink:~]$ asdf install v weekly.2023.01 
* Downloading [email protected]
* Downloaded to /home/x80486/.asdf/installs/v/weekly.2023.01
* Building [email protected] from source
make: cc: No such file or directory
make: *** [GNUmakefile:113: all] Error 127
* ERROR: asdf-v Could not compile [email protected]
* ERROR: asdf-v An error ocurred while installing [email protected]

As a matter of fact, every single install currently fails for me, not sure what changed. I can't tell what's going on based on the error message, but it looks quite generic ๐Ÿ˜ฌ

Steps to reproduce

Install weekly release using asdf install v weekly.2023.01

Expected behavior

Installation should succeed.

Additional context

[x80486@uplink:~]$ uname -a 
Linux uplink 5.15.86-1-lts #1 SMP Sun, 01 Jan 2023 16:03:00 +0000 x86_64 GNU/Linux

[x80486@uplink:~]$ make --version 
GNU Make 4.4
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

I've also tried (without luck):

[x80486@uplink:~]$ CC=gcc asdf install v weekly.2023.01 
* Downloading [email protected]
* Downloaded to /home/x80486/.asdf/installs/v/weekly.2023.01
* Building [email protected] from source
make: gcc: No such file or directory
make: *** [GNUmakefile:113: all] Error 127
* ERROR: asdf-v Could not compile [email protected]
* ERROR: asdf-v An error ocurred while installing [email protected]

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.