-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: install python using asdf instead of gha that is not pinned (#120)
- Loading branch information
1 parent
a0964b6
commit 366ff7e
Showing
5 changed files
with
80 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
################################################################################ | ||
# # | ||
# Note: when adding a new tool here, also adjust the Renovate configuration # | ||
# that mirrors some asdf plugin's logic to remove version prefixes like # | ||
# "v". # | ||
# # | ||
# You have to amend the Renovate config when the asdf plugin takes 1.2.3 # | ||
# as the version but the Docker tag/Github tag is actually v1.2.3 # | ||
# # | ||
################################################################################ | ||
|
||
# /!\ Please maintain this file sorted alphabetically. | ||
# check it with | ||
# diff <(sed '/^#/d; /^$/d' .tool-versions | sort) <(sed '/^#/d; /^$/d' .tool-versions) && echo ".tool-versions is sorted correctly" || echo ".tool-versions is not sorted correctly" | ||
|
||
awscli 2.16.0 | ||
|
||
just 1.27.0 | ||
|
||
pre-commit 3.7.1 | ||
|
||
python 3.12.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# this file is a recipe file for the project | ||
|
||
# Install all the tooling | ||
install-tooling: asdf-install | ||
|
||
# Install asdf plugins | ||
asdf-plugins: | ||
#!/bin/sh | ||
echo "Installing asdf plugins" | ||
for plugin in $(awk '{print $1}' .tool-versions); do \ | ||
asdf plugin add ${plugin} 2>&1 | (grep "already added" && exit 0); \ | ||
done | ||
|
||
echo "Update all asdf plugins" | ||
asdf plugin update --all | ||
|
||
# Install tools using asdf | ||
asdf-install: asdf-plugins | ||
asdf install |