Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install specific version from source #28

Open
spywhere opened this issue Feb 12, 2022 · 2 comments
Open

Install specific version from source #28

spywhere opened this issue Feb 12, 2022 · 2 comments

Comments

@spywhere
Copy link

spywhere commented Feb 12, 2022

From what I see here,

asdf-deno/bin/install

Lines 26 to 28 in 6685b18

if [ "$install_type" != "version" ]; then
fail "asdf-deno supports release installs only"
fi

I think you can made it possible to install specific version of deno, by using cargo.

cargo install --root "$install_path" --version "$version" deno --locked

The only caveat is this require cargo to be installed, but I think that is a fair trade off. Since you could install those through asdf-rust as well.

if [ -n "$(command -v cargo)" ]; then
  # cargo is available
fi
@x80486
Copy link

x80486 commented Mar 28, 2022

What's the real advantage of this?

@spywhere
Copy link
Author

This feature allows you to have a managed version manager supported on unsupported architecture/device (e.g. raspberry pi). With ASDF and build from source supported, I can have deno installed with multiple version across all platform I'm working on without a need to manage the build script or binary management for version control.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants