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

feat(tool-versions): have versions of needed tools commited in the repo #319

Merged
merged 1 commit into from
Jan 31, 2025

Conversation

chaporgin
Copy link
Member

This introduces .tool-versions, a devtooling file, that allows one to have needed dependencies locally for the neonctl repo.

Most common dependencies are introduced. New ones can be added for example,

The recommended way to work with this file is by installing mise and configuring it for your shell of choice. Examples below:

# note this assumes mise is located at ~/.local/bin/mise
# which is what https://mise.run does by default
echo 'eval "$(~/.local/bin/mise activate bash)"' >> ~/.bashrc
echo 'eval "$(~/.local/bin/mise activate zsh)"' >> ~/.zshrc
echo '~/.local/bin/mise activate fish | source' >> ~/.config/fish/config.fish
echo '~/.local/bin/mise activate mise activate pwsh | Out-String | Invoke-Expression' >> ~/.config/powershell/Microsoft.PowerShell_profile.ps1

This introduces [.tool-versions](https://asdf-vm.com/manage/configuration.html), a devtooling file, that allows one to have needed dependencies locally for the neonctl repo.

Most common dependencies are introduced. New ones can be added for example,

The recommended way to work with this file is by installing [mise](https://github.com/jdx/mise) and configuring it for your shell of choice. Examples below:
```
# note this assumes mise is located at ~/.local/bin/mise
# which is what https://mise.run does by default
echo 'eval "$(~/.local/bin/mise activate bash)"' >> ~/.bashrc
echo 'eval "$(~/.local/bin/mise activate zsh)"' >> ~/.zshrc
echo '~/.local/bin/mise activate fish | source' >> ~/.config/fish/config.fish
echo '~/.local/bin/mise activate mise activate pwsh | Out-String | Invoke-Expression' >> ~/.config/powershell/Microsoft.PowerShell_profile.ps1
```
@chaporgin chaporgin requested a review from duskpoet January 30, 2025 15:59
Copy link
Member

@duskpoet duskpoet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't know how this would work with existing installations, but I don't mind the addition

@chaporgin
Copy link
Member Author

don't know how this would work with existing installations, but I don't mind the addition

This does not affect the installation, it's only for the local dev.

@chaporgin chaporgin merged commit d3cfcee into main Jan 31, 2025
5 checks passed
@chaporgin chaporgin deleted the chaporgin/21903-introduce-tool-versions branch January 31, 2025 09:14
@duskpoet
Copy link
Member

I mean, if I install mise and already have node installed via nvm, what will happen

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

Successfully merging this pull request may close these issues.

2 participants