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

Custom default version #1248

Closed
chulkilee opened this issue Jun 14, 2022 · 3 comments
Closed

Custom default version #1248

chulkilee opened this issue Jun 14, 2022 · 3 comments

Comments

@chulkilee
Copy link

Is your feature request related to a problem? Please describe

I put all asdf config to XDG directories, and used to use ASDF_DEFAULT_TOOL_VERSIONS_FILENAME to set the default version.

Apparently using ASDF_DEFAULT_TOOL_VERSIONS_FILENAME for that purpose is incorrect (#912) - and now it's fixed (#1238) - and now I have to use $HOME/.tool-versions the default, which is only asdf file outside the XDG.

Describe the proposed solution

It would be nice to have env var to specify the location of the global default file - e.g. ASDF_GLOBAL_TOOL_VERSIONS_PATH or something like.

Describe similar asdf features and why they are not sufficient

None

Describe other workarounds you've considered

For now I'm using symlink - but it still keep the $HOME/.tool-versions file - which I'd like to remove.

@bigodel
Copy link

bigodel commented Jun 15, 2022

as a workaround, i've been setting ADSF_DEFAULT_TOOL_VERSIONS_FILENAME to .config/asdf/tool-versions, and it seems to be working fine albeit the ugly hack.

@chulkilee
Copy link
Author

@bigodel that was used to work but now not working at v0.10.2-7e7a1fa with the fix. Now it ignores the local .tool-versions since it uses the variable for the local tool version

@jthegedus
Copy link
Contributor

jthegedus commented Jun 16, 2022

Issue #687 is essentially about XDG support

Comment #687 (comment) from January 2022 requested a ticket rename to better describe the intent, sorry for not getting to that sooner.

I am going to mark this as a duplicate of #687 If you feel this is incorrect please reopen this Issue.

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

No branches or pull requests

3 participants