Asdf: [Proposal] A way to treat language installed from local sources

Created on 26 Jul 2016  路  3Comments  路  Source: asdf-vm/asdf

Oftentimes I have a language source downloaded, make change to it, then compile it and run some code of mine against this newly compiled language binary.

Is there a way I could tell asdf where my custom compiled binary reside? This would allow me to quickly switch current version of language to my compiled version, check something, and then switch back to stable version.

Here's the desired API I have in mind right now.

  1. Tell asdf about a locally compiled elixir:

bash $ asdf link elixir my_custom_source ~/gmile/elixir/bin $ asdf link elixir my_experimental_source ~/gmile/elixir2/bin

  1. Listing all elixir versions now would show two more item in addition to whatever stable versions were already installed:

bash $ asdf list elixir 1.3.2 my_custom_source (~/gmile/elixir/bin) my_experimental_source (~/gmile/elixir2/bin)

  1. Tell asdf to use a custom elixir version:

$ asdf local elixir my_custom_source

  1. Tell asdf to forget about custom elixir versions:

bash $ asdf unlink elixir my_custom_source $ asdf unlink elixir my_experimental_source

Most helpful comment

@gmile and once #112 and #110 get merged you will be able to do:

ASDF_ELIXIR_VERSION="path:/your/experimental/elixir" mix test

with any supported tool not just elixir.

All 3 comments

@gmile The Elixir plugin supports a path:/foo/bar as a version to use.

So having the following in your tool versions will assume that you have custom elixir in that dir.

elixir path:/foo/bar

@gmile and once #112 and #110 get merged you will be able to do:

ASDF_ELIXIR_VERSION="path:/your/experimental/elixir" mix test

with any supported tool not just elixir.

Closing this issue since it seems like there are several ways of doing this now.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

michalmuskala picture michalmuskala  路  5Comments

robsonpeixoto picture robsonpeixoto  路  4Comments

kevinkjt2000 picture kevinkjt2000  路  4Comments

Stratus3D picture Stratus3D  路  3Comments

Antiarchitect picture Antiarchitect  路  3Comments