File tree Expand file tree Collapse file tree 3 files changed +24
-7
lines changed Expand file tree Collapse file tree 3 files changed +24
-7
lines changed Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ set -eu
4+ pushd " $( dirname " ${BASH_SOURCE[0]} " ) " /../..
5+
6+ WORKDIR=$( pwd)
7+
8+ echo " Installing asdf dependencies as defined in '${WORKDIR} /.tool-versions':"
9+ asdf install
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
2+ # Skip the rest if this is pipeline upload or empty
3+ if [[ " ${BUILDKITE_COMMAND:- } " =~ " buildkite-agent pipeline upload" .* ]]; then
4+ exit 0
5+ elif [[ " ${BUILDKITE_COMMAND:- } " = " " ]]; then
6+ exit 0
7+ fi
28
3- set -eu
4- pushd " $( dirname " ${BASH_SOURCE[0]} " ) " /../..
5-
6- WORKDIR=$( pwd)
7-
8- echo " Installing asdf dependencies as defined in '${WORKDIR} /.tool-versions':"
9- asdf install
9+ if [ ! -f .use_mise ]; then
10+ source ./asdf-pre-command
11+ fi
Original file line number Diff line number Diff line change 1+ Stateless CI agents use the presence of this file to determine whether it should install tools with mise or install them with ASDF.
2+ Thus if you delete this file, CI will use ASDF to install tools and not mise.
3+
4+ The file is only meant to be here while we transition to using mise completely.
5+
6+ For more information you can reach out to the dev-infra team on #discuss-dev-infra.
You can’t perform that action at this time.
0 commit comments