From 235283284f3246a6068f576959c63942c88a4b33 Mon Sep 17 00:00:00 2001 From: mehdi Date: Fri, 26 Apr 2024 22:52:36 +0330 Subject: [PATCH] feat(niki): update RTX to mise --- .mise.toml | 18 ++++++++++++++++++ .rtx.toml | 21 --------------------- doc/mise.md | 37 +++++++++++++++++++++++++++++++++++++ 3 files changed, 55 insertions(+), 21 deletions(-) create mode 100644 .mise.toml delete mode 100644 .rtx.toml create mode 100644 doc/mise.md diff --git a/.mise.toml b/.mise.toml new file mode 100644 index 0000000..5b2b992 --- /dev/null +++ b/.mise.toml @@ -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] + diff --git a/.rtx.toml b/.rtx.toml deleted file mode 100644 index 2fa9b24..0000000 --- a/.rtx.toml +++ /dev/null @@ -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' - diff --git a/doc/mise.md b/doc/mise.md new file mode 100644 index 0000000..1fb234c --- /dev/null +++ b/doc/mise.md @@ -0,0 +1,37 @@ +# Getting Started +1.Installing the CLI
+2.Activating mise or adding its shims to PATH
+3.Adding tools to mise
+ +# Quick start + +## 1. Install mise CLI +First we need to download the mise CLI.
+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.
+```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/ \ No newline at end of file