Skip to content

Use Mise #274

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .buildkite/hooks/asdf-pre-command
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash

set -eu
pushd "$(dirname "${BASH_SOURCE[0]}")"/../..

WORKDIR=$(pwd)

echo "Installing asdf dependencies as defined in '${WORKDIR}/.tool-versions':"
asdf install
16 changes: 9 additions & 7 deletions .buildkite/hooks/pre-command
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
#!/usr/bin/env bash
# Skip the rest if this is pipeline upload or empty
if [[ "${BUILDKITE_COMMAND:-}" =~ "buildkite-agent pipeline upload".* ]]; then
exit 0
elif [[ "${BUILDKITE_COMMAND:-}" = "" ]]; then
exit 0
fi

set -eu
pushd "$(dirname "${BASH_SOURCE[0]}")"/../..

WORKDIR=$(pwd)

echo "Installing asdf dependencies as defined in '${WORKDIR}/.tool-versions':"
asdf install
if [ ! -f .use_mise ]; then
source ./asdf-pre-command
fi
6 changes: 6 additions & 0 deletions .use_mise
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Stateless CI agents use the presence of this file to determine whether it should install tools with mise or install them with ASDF.
Thus if you delete this file, CI will use ASDF to install tools and not mise.

The file is only meant to be here while we transition to using mise completely.

For more information you can reach out to the dev-infra team on #discuss-dev-infra.