Open sarg3nt opened 1 month ago
Another bit of information. If I install the plugins one at a time then install the apps one at a time with the newest version it works fine. Example code below:
#!/bin/bash
# Copyright (c) 2023 Schweitzer Engineering Laboratories, Inc.
# SEL Confidential
set -euo pipefail
IFS=$'\n\t'
# cSpell:ignore devel libuuid gdbm libnsl
main() {
source "/usr/bin/lib/sh/log.sh"
############ Install mise
log "30-install-mise.sh" "blue"
# From https://github.com/pyenv/pyenv/wiki#suggested-build-environment
log "Installing mise" "green"
curl -sL https://mise.run | sh
export PATH="$HOME/.local/share/mise/shims:$HOME/.local/bin/:$PATH"
log "Installing tools with mise" "green"
#mise trust "$HOME/.config/mise/config.toml"
#mise install
log "Adding mise plugins" "green"
mise plugin install bat "https://gitlab.com/wt0f/asdf-bat"
mise plugin install dive "https://github.com/looztra/asdf-dive"
mise plugin install fzf "https://github.com/kompiro/asdf-fzf"
mise plugin install gitui "https://github.com/looztra/asdf-gitui"
mise plugin install goreleaser "https://github.com/kforsthoevel/asdf-goreleaser"
mise plugin install helm "https://github.com/Antiarchitect/asdf-helm"
mise plugin install k9s "https://github.com/looztra/asdf-k9s"
mise plugin install krew "https://github.com/bjw-s/asdf-krew"
mise plugin install kubebench "https://github.com/sarg3nt/asdf-kube-bench"
mise plugin install kubectl 'https://github.com/asdf-community/asdf-kubectl'
mise plugin install kubectx "https://gitlab.com/wt0f/asdf-kubectx"
mise plugin install kubeseal "https://github.com/stefansedich/asdf-kubeseal"
mise plugin install lsd "https://github.com/mise-plugins/asdf-lsd"
mise plugin install micro "https://github.com/sarg3nt/asdf-micro"
mise plugin install opentofu "https://github.com/virtualroot/asdf-opentofu"
mise plugin install packer "https://github.com/asdf-community/asdf-hashicorp"
mise plugin install starship "https://github.com/gr1m0h/asdf-starship"
mise plugin install tealdeer "https://github.com/sarg3nt/asdf-tealdeer"
mise plugin install trivy "https://github.com/zufardhiyaulhaq/asdf-trivy"
mise plugin install vault "https://github.com/asdf-community/asdf-hashicorp"
mise plugin install yq "https://github.com/sudermanjr/asdf-yq"
while :; do
log "Installing apps" "green"
TZ='America/Los_Angeles' date
mise use -g bat@latest
TZ='America/Los_Angeles' date
mise use -g dive@latest
TZ='America/Los_Angeles' date
mise use -g fzf@latest
TZ='America/Los_Angeles' date
mise use -g gitui@latest
TZ='America/Los_Angeles' date
mise use -g goreleaser@latest
TZ='America/Los_Angeles' date
mise use -g helm@latest
TZ='America/Los_Angeles' date
mise use -g k9s@latest
TZ='America/Los_Angeles' date
mise use -g krew@latest
TZ='America/Los_Angeles' date
mise use -g kubebench@latest
TZ='America/Los_Angeles' date
mise use -g kubectl@latest
TZ='America/Los_Angeles' date
mise use -g kubectx@latest
TZ='America/Los_Angeles' date
mise use -g kubeseal@latest
TZ='America/Los_Angeles' date
mise use -g lsd@latest
TZ='America/Los_Angeles' date
mise use -g micro@latest
TZ='America/Los_Angeles' date
mise use -g opentofu@latest
TZ='America/Los_Angeles' date
mise use -g packer@latest
TZ='America/Los_Angeles' date
mise use -g starship@latest
TZ='America/Los_Angeles' date
mise use -g tealdeer@latest
TZ='America/Los_Angeles' date
mise use -g trivy@latest
TZ='America/Los_Angeles' date
mise use -g vault@latest
TZ='America/Los_Angeles' date
mise use -g yq@latest
echo "*** Sleeping for 10 ***"
sleep 10
log "Removing apps" "green"
TZ='America/Los_Angeles' date
mise uninstall -y powershell@latest
mise uninstall -y bat@latest
mise uninstall -y dive@latest
mise uninstall -y fzf@latest
mise uninstall -y gitui@latest
mise uninstall -y goreleaser@latest
mise uninstall -y helm@latest
mise uninstall -y k9s@latest
mise uninstall -y krew@latest
mise uninstall -y kubebench@latest
mise uninstall -y kubectl@latest
mise uninstall -y kubectx@latest
mise uninstall -y kubeseal@latest
mise uninstall -y lsd@latest
mise uninstall -y mctl@latest
mise uninstall -y micro@latest
mise uninstall -y opentofu@latest
mise uninstall -y packer@latest
mise uninstall -y starship@latest
mise uninstall -y tealdeer@latest
mise uninstall -y trivy@latest
mise uninstall -y vault@latest
mise uninstall -y yq@latest
echo ""
echo "*** Sleeping for 10 ***"
sleep 10
echo "** LOOPING **"
echo ""
done
log "Deleting files from /tmp" "green"
sudo rm -rf /tmp/*
}
# Run main
if ! (return 0 2>/dev/null); then
(main "$@")
fi
That can loop forever and install every time.
do you have cat
symlinked to bat
or something?
do you have
cat
symlinked tobat
or something?
Negative. No aliases for cat
at all and bat
is not installed in either by root shell or the Docker container. It is something that mise
is attempting to install, but is not otherwise.
@jdx Double checking you saw my reply above. Anything else I can help with troubleshooting this?
I have not had time to investigate more, I did try to reproduce but was unable. It looked to me like bat
or maybe cat
was a mise shim which was causing this to happen but I'm not sure how that would have happened with your toolset.
@jdx Yeah, I don't know.
I did a which cat
in the shell script that runs mise and it returns /usr/bin/cat
which bat
returns which: no bat in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin)
I just tried the latest release and it's still failing.
I commented out bat
so mise would not try to install it and it still fails.
Base OS for the container is:
rockylinux:9
Hope that helps.
Describe the bug When running
mise install
to install apps via a config file during a build of a Docker container,mise
versionsv2024.5.26
andv2024.5.27
fail with the following errors.mise
versionv2024.5.24
works as expected.Removing apps from the install list does not solve anything as it then changes to a different app that will not install.
To Reproduce
The mise
config.yaml
In a script ran by the
Dockerfile
I have this.Expected behavior Newer versions should install, or if there are breaking changes with the config file then this should not be a patch release and the changes should be mentioned both in docs and in the Releases notes for that version, I suspect this is a bug though..
mise doctor
outputAdditional context This is code that has been working for some time and broke with new releases of
mise
.ARG MISE_VERSION="v2024.5.24"
worksARG MISE_VERSION="v2024.5.25"
mise does not installARG MISE_VERSION="v2024.5.26"
Throws above errorsARG MISE_VERSION="v2024.5.27"
Throws above errors