fix: rtx is now mise
Check the [blog post][0] about the migration. [0]: https://mise.jdx.dev/rtx.html
This commit is contained in:
parent
00da94a19f
commit
22afe9a45f
@ -139,7 +139,7 @@ RUN mkdir -p ${HOME}/.local/src \
|
||||
RUN git clone https://github.com/elixir-lsp/elixir-ls.git ${LOCAL_SRC_HOME}/elixir-ls
|
||||
|
||||
# command line utilities
|
||||
RUN curl https://rtx.pub/install.sh | sh \
|
||||
RUN curl https://mise.jdx.dev/install.sh | sh \
|
||||
&& curl -sS https://raw.githubusercontent.com/ajeetdsouza/zoxide/main/install.sh | bash \
|
||||
&& git clone https://github.com/tmux-plugins/tpm.git ${XDG_CONFIG_HOME}/tmux/plugins/tpm
|
||||
|
||||
@ -156,7 +156,7 @@ RUN git clone https://github.com/nvim-lua/kickstart.nvim.git "${XDG_CONFIG_HOME}
|
||||
# configure fish and bash
|
||||
RUN fish -c true \
|
||||
&& echo 'starship init fish | source' >> ${XDG_CONFIG_HOME}/fish/config.fish \
|
||||
&& echo '{$XDG_DATA_HOME}/rtx/bin/rtx activate fish | source' >> ${XDG_CONFIG_HOME}/fish/config.fish \
|
||||
&& echo '{$LOCAL_BIN_HOME}/mise activate fish | source' >> ${XDG_CONFIG_HOME}/fish/config.fish \
|
||||
&& echo 'zoxide init fish | source' >> ${XDG_CONFIG_HOME}/fish/config.fish \
|
||||
&& echo 'alias cat="bat"' >> ${XDG_CONFIG_HOME}/fish/config.fish \
|
||||
&& echo 'alias l="eza --time-style long-iso --color=auto -F"' >> ${XDG_CONFIG_HOME}/fish/config.fish \
|
||||
@ -171,7 +171,7 @@ RUN git config --global user.email "${GIT_USER_EMAIL}" \
|
||||
&& git config --global core.editor nvim
|
||||
|
||||
# install rtx plugins
|
||||
RUN ${XDG_DATA_HOME}/rtx/bin/rtx plugins install --force --yes \
|
||||
RUN ${LOCAL_BIN_HOME}/mise plugins install --force --yes \
|
||||
awscli \
|
||||
bat \
|
||||
dagger \
|
||||
|
@ -10,7 +10,7 @@ services:
|
||||
command: infinity
|
||||
volumes:
|
||||
- './config/nvim/lua/custom:/home/coder/.config/nvim/lua/custom'
|
||||
- './config/rtx:/home/coder/.config/rtx'
|
||||
- './config/mise:/home/coder/.config/mise'
|
||||
- './config/starship:/home/coder/.config/starship'
|
||||
- './config/tmux:/home/coder/.config/tmux'
|
||||
- './config/tmuxp:/home/coder/.config/tmuxp'
|
||||
|
@ -121,7 +121,7 @@ index 1ff16af..2ef9591 100644
|
||||
filetypes = (servers[server_name] or {}).filetypes,
|
||||
}
|
||||
+ if server_name == 'elixirls' then
|
||||
+ local version = vim.fn.system('rtx current elixir') or ''
|
||||
+ local version = vim.fn.system('mise current elixir') or ''
|
||||
+ local match_version_111 = string.match(version, '^1.11')
|
||||
+ local match_version_112 = string.match(version, '^1.12')
|
||||
+ if match_version_111 ~= nil then
|
||||
|
@ -10,18 +10,20 @@ function setup() {
|
||||
git checkout tags/${1}
|
||||
echo "set erlang/elixir versions"
|
||||
cp .release-tool-versions .tool-versions
|
||||
echo "using erlang $(rtx current erlang) / elixir $(rtx current elixir)"
|
||||
local current_erlang=$(mise current erlang)
|
||||
local current_elixir=$(mise current elixir)
|
||||
echo "using erlang ${current_erlang} / elixir ${current_elixir}"
|
||||
echo "install erlang/elixir runtimes"
|
||||
KERL_CONFIGURE_OPTIONS="-with-ssl=${HOME}/.local/lib/ssl" rtx install
|
||||
KERL_CONFIGURE_OPTIONS="-with-ssl=${HOME}/.local/lib/ssl" mise install
|
||||
echo "install elixir-ls deps"
|
||||
mix do local.rebar --force, local.hex --force, deps.get, deps.compile
|
||||
mise exec erlang@${current_erlang} elixir@${current_elixir} --command "mix do local.rebar --force, local.hex --force, deps.get, deps.compile"
|
||||
echo "compile and release elixir-ls"
|
||||
MIX_ENV=prod mix compile
|
||||
MIX_ENV=prod mix elixir_ls.release -o ${elixir_ls_release}/${1}
|
||||
mise exec erlang@${current_erlang} elixir@${current_elixir} --command "MIX_ENV=prod mix compile"
|
||||
mise exec erlang@${current_erlang} elixir@${current_elixir} --command "MIX_ENV=prod mix elixir_ls.release -o ${elixir_ls_release}/${1}"
|
||||
echo "remove local .tool-versions"
|
||||
cp .tool-versions ${elixir_ls_release}/${1}
|
||||
rm .tool-versions
|
||||
mix do deps.clean --all, clean
|
||||
mise exec erlang@${current_erlang} elixir@${current_elixir} --command "mix do deps.clean --all, clean"
|
||||
git checkout master
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user