feat(niki): update RTX to mise

This commit is contained in:
mehdi 2024-04-26 22:52:36 +03:30
parent 58c48dfccc
commit 235283284f
3 changed files with 55 additions and 21 deletions

18
.mise.toml Normal file
View File

@ -0,0 +1,18 @@
[env]
# supports arbitrary env vars so rtx can be used like direnv/dotenv
GO_ENV = 'GOLANG_MISE'
MISE_USE_TOML= 1 #Set to 1 to default to using .mise.toml
RUST_BACKTRACE=0
#COLORBT_SHOW_HIDDEN=1
MISE_VERBOSE=0 #This shows the installation output during rtx install and rtx plugin install.
MISE_LOG_FILE='./mise.log' #Output logs to a file.
MISE_LOG_FILE_LEVEL='debug' #This is useful if you want to store the logs but not have them litter your display.
MISE_DEBUG=0 #show DEBUG message in console
MISE_QUIET=1 #Equivalent to MISE_LOG_LEVEL=warn.
MISE_ERORR=1
MISE_TRACE=0
[tools]
go = '1.21.4'
[plugins]

View File

@ -1,21 +0,0 @@
[env]
# supports arbitrary env vars so rtx can be used like direnv/dotenv
GO_ENV = 'GOLANG_RTX'
RTX_DEBUG=true
RTX_USE_TOML=true #Set to 1 to default to using .rtx.toml
RTX_LOG_FILE='./rtx.log' #Output logs to a file.
RTX_VERBOSE='1' #This shows the installation output during rtx install and rtx plugin install.
[tools]
golang = '1.21.5'
[settings]
verbose = true # set true to see full installation output
jobs = 4 # number of plugins or runtimes to install in parallel. The default is `4`.
yes = true # set to true to automatically answer yes to all prompts
experimental = false # enable experimental features
# log_level = 'debug' # log verbosity
[plugins]
golang = 'https://github.com/rtx-plugins/rtx-golang'

37
doc/mise.md Normal file
View File

@ -0,0 +1,37 @@
# Getting Started
1.Installing the CLI <br>
2.Activating mise or adding its shims to PATH <br>
3.Adding tools to mise <br>
# Quick start
## 1. Install mise CLI
First we need to download the mise CLI.<br>
This directory is simply a suggestion. mise can be installed anywhere.
```shell
curl https://mise.jdx.dev/install.sh | sh
~/.local/bin/mise --version
mise 2024.x.x
```
## 2.Activate mise
Make sure you restart your shell session after modifying your rc file in order for it to take effect. <br>
```shell
echo 'eval "$(~/.local/bin/mise activate bash)"' >> ~/.bashrc
```
then use this command
```shell
export MISE_GLOBAL_CONFIG_FILE=./config.toml
```
how use mise:
```shell
mise activate
mise install
mise current
mise ls
```
mise install -> Go Download 404: https://github.com/golang/go/issues/51255 :
```shell
mise settings set go_download_mirror "https://storage.googleapis.com/golang"
```
# Full Documentation
see https://mise.jdx.dev/