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

Add a new asdf direnv install command #180

Merged
merged 1 commit into from
Nov 20, 2023
Merged

Commits on Aug 23, 2023

  1. Add a new asdf direnv install command

    Before this diff, it was difficult to install tools that depend on
    other tools. For example, here's what happens if I try to install a
    version of poetry on my machine:
    
        $ asdf install poetry 1.5.1
        No version is set for command python3
        Consider adding one of the following versions in your config file at
        python 3.10.2
        python 3.8.10
        curl: (23) Failure writing output to destination
    
        Cleanup: Something went wrong!
    
        48 /home/jeremy/.asdf/plugins/poetry/bin/install: POETRY_HOME=$install_path python3 - --version "$version" $flags
    
    This is because my system doesn't actually have a global `python` or
    `python3`. While I *could* install python with my system's package
    manager, I'd rather re-use my asdf-managed python if at all possible.
    Plus, poetry's installer doesn't even work with the 2 most popular ways
    of installing python systemwide on macOS (see [this poetry
    issue](python-poetry/install.python-poetry.org#24 (comment))
    and [this homebrew issue](Homebrew/homebrew-core#138159)).
    
    I know this doesn't solve the general build-dependencies issue: asdf is
    not a full package manager and I doubt it ever will become one. I do
    think this fairly minor change is worth implementing though, as it will
    solve a pain point my team has started running into ever since [homebrew
    changed they way they build binaries, which broke poetry
    install](Homebrew/homebrew-core#138159).
    
    As a happy side effect, we can now run `direnv reload` for the user,
    which saves them a step whenever they need to install missing
    dependencies.
    jfly committed Aug 23, 2023
    Configuration menu
    Copy the full SHA
    c9ff9dc View commit details
    Browse the repository at this point in the history