Skip to content
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

feat: add asdf supported tools #32333

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
32 changes: 32 additions & 0 deletions lib/modules/manager/asdf/extract.spec.ts
mtweeman marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ actionlint 0.7.0
adr-tools 3.0.0
argocd 2.5.4
asdf-plugin-manager 1.1.1
atmos 1.100.0
awscli 2.8.6
bun 0.2.2
cargo-make 0.36.2
Expand Down Expand Up @@ -85,6 +86,7 @@ idris 1.3.4
java adoptopenjdk-16.0.0+36
julia 1.8.2
just 1.7.0
k3s 1.31.2+k3s1
kind 0.19.0
kotlin 1.7.20
kubectl 1.26.3
Expand All @@ -97,7 +99,9 @@ minikube 1.33.1
nim 1.6.8
nodejs 18.12.0
ocaml 4.14.0
oci 3.50.0
opentofu 1.6.0
packer 1.11.2
perl 5.37.5
php 8.1.12
pnpm 7.26.2
Expand Down Expand Up @@ -167,6 +171,13 @@ dummy 1.2.3
depName: 'asdf-plugin-manager',
extractVersion: '^v(?<version>\\S+)',
},
{
currentValue: '1.100.0',
datasource: 'github-releases',
packageName: 'cloudposse/atmos',
depName: 'atmos',
extractVersion: '^v(?<version>\\S+)',
},
{
currentValue: '2.8.6',
datasource: 'github-tags',
Expand Down Expand Up @@ -406,6 +417,13 @@ dummy 1.2.3
packageName: 'casey/just',
depName: 'just',
},
{
currentValue: '1.31.2+k3s1',
datasource: 'github-releases',
packageName: 'k3s-io/k3s',
depName: 'k3s',
extractVersion: '^v(?<version>\\S+)',
mtweeman marked this conversation as resolved.
Show resolved Hide resolved
},
{
currentValue: '0.19.0',
datasource: 'github-releases',
Expand Down Expand Up @@ -486,13 +504,27 @@ dummy 1.2.3
packageName: 'ocaml/ocaml',
depName: 'ocaml',
},
{
currentValue: '3.50.0',
datasource: 'github-releases',
packageName: 'oracle/oci-cli',
depName: 'oci',
extractVersion: '^v(?<version>\\S+)',
},
{
currentValue: '1.6.0',
datasource: 'github-releases',
packageName: 'opentofu/opentofu',
depName: 'opentofu',
extractVersion: '^v(?<version>\\S+)',
},
{
currentValue: '1.11.2',
datasource: 'github-releases',
packageName: 'hashicorp/packer',
depName: 'packer',
extractVersion: '^v(?<version>\\S+)',
},
{
currentValue: '5.37.5',
datasource: 'github-tags',
Expand Down
32 changes: 32 additions & 0 deletions lib/modules/manager/asdf/upgradeable-tooling.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,14 @@ export const upgradeableTooling: Record<string, ToolingDefinition> = {
extractVersion: '^v(?<version>\\S+)',
},
},
atmos: {
asdfPluginUrl: 'https://github.com/cloudposse/asdf-atmos',
config: {
datasource: GithubReleasesDatasource.id,
packageName: 'cloudposse/atmos',
extractVersion: '^v(?<version>\\S+)',
},
},
awscli: {
asdfPluginUrl: 'https://github.com/MetricMike/asdf-awscli',
config: {
Expand Down Expand Up @@ -416,6 +424,14 @@ export const upgradeableTooling: Record<string, ToolingDefinition> = {
packageName: 'casey/just',
},
},
k3s: {
asdfPluginUrl: 'https://github.com/dmpe/asdf-k3s',
config: {
datasource: GithubReleasesDatasource.id,
packageName: 'k3s-io/k3s',
extractVersion: '^v(?<version>\\S+)',
},
},
kind: {
asdfPluginUrl: 'https://github.com/johnlayton/asdf-kind',
config: {
Expand Down Expand Up @@ -510,6 +526,14 @@ export const upgradeableTooling: Record<string, ToolingDefinition> = {
packageName: 'ocaml/ocaml',
},
},
oci: {
asdfPluginUrl: 'https://github.com/yasn77/asdf-oci',
config: {
datasource: GithubReleasesDatasource.id,
packageName: 'oracle/oci-cli',
extractVersion: '^v(?<version>\\S+)',
},
},
opentofu: {
asdfPluginUrl: 'https://github.com/virtualroot/asdf-opentofu',
config: {
Expand All @@ -518,6 +542,14 @@ export const upgradeableTooling: Record<string, ToolingDefinition> = {
extractVersion: '^v(?<version>\\S+)',
},
},
packer: {
asdfPluginUrl: 'https://github.com/asdf-community/asdf-hashicorp',
config: {
datasource: GithubReleasesDatasource.id,
packageName: 'hashicorp/packer',
extractVersion: '^v(?<version>\\S+)',
},
},
perl: {
asdfPluginUrl: 'https://github.com/ouest/asdf-perl',
config: {
Expand Down