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

Generate aqua.yaml from .tool-versions #3074

Open
suzuki-shunsuke opened this issue Sep 4, 2024 · 1 comment
Open

Generate aqua.yaml from .tool-versions #3074

suzuki-shunsuke opened this issue Sep 4, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@suzuki-shunsuke
Copy link
Member

Feature Overview

Enable you to generate aqua.yaml from .tool-versions.

Why is the feature needed?

To make it easy to migrate asdf to aqua.

Workaround

No response

Example Code

$ aqua convert-tool-versions # Create or update aqua.yaml from .tool-versions

Or creating a new tool like aqua-tool-versions-converter.

$ aqua-tool-versions-converter

Note

No response

@suzuki-shunsuke suzuki-shunsuke added the enhancement New feature or request label Sep 4, 2024
@suzuki-shunsuke
Copy link
Member Author

Approach 1

  1. Find, read, and parse .tool-versions
  2. Find, read and parse aqua.yaml
  3. Search aqua packages from registries
  4. Create or update aqua.yaml

Parse .tool-versions

https://asdf-vm.com/manage/configuration.html#tool-versions

  • Ignore comments
  • Ignore path:~/src/elixir and system

Search packages

Treat .tool-versions tool names as aqua package's command names or package names' suffix.
Ignore tools which aqua doesn't support

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant