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(asdf): dotnet support #30464

Merged
merged 3 commits into from
Jul 31, 2024
Merged
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
7 changes: 7 additions & 0 deletions lib/modules/manager/asdf/extract.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ crystal 1.6.1
dart 2.19.3
deno 1.26.2
direnv 2.32.1
dotnet-core 8.0.303
dprint 0.32.2
ecspresso 2.1.0
elixir 1.14.1
Expand Down Expand Up @@ -227,6 +228,12 @@ dummy 1.2.3
depName: 'direnv',
extractVersion: '^v(?<version>\\S+)',
},
{
currentValue: '8.0.303',
datasource: 'dotnet-version',
packageName: 'dotnet-sdk',
depName: 'dotnet-core',
},
{
currentValue: '0.32.2',
datasource: 'github-releases',
Expand Down
2 changes: 2 additions & 0 deletions lib/modules/manager/asdf/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { DartVersionDatasource } from '../../datasource/dart-version';
import { DockerDatasource } from '../../datasource/docker';
import { DotnetVersionDatasource } from '../../datasource/dotnet-version';
import { FlutterVersionDatasource } from '../../datasource/flutter-version';
import { GithubReleasesDatasource } from '../../datasource/github-releases';
import { GithubTagsDatasource } from '../../datasource/github-tags';
Expand All @@ -21,6 +22,7 @@ export const defaultConfig = {
export const supportedDatasources = [
DartVersionDatasource.id,
DockerDatasource.id,
DotnetVersionDatasource.id,
FlutterVersionDatasource.id,
GithubReleasesDatasource.id,
GithubTagsDatasource.id,
Expand Down
8 changes: 8 additions & 0 deletions lib/modules/manager/asdf/upgradeable-tooling.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { regEx } from '../../../util/regex';
import { DartVersionDatasource } from '../../datasource/dart-version';
import { DockerDatasource } from '../../datasource/docker';
import { DotnetVersionDatasource } from '../../datasource/dotnet-version';
import { FlutterVersionDatasource } from '../../datasource/flutter-version';
import { GithubReleasesDatasource } from '../../datasource/github-releases';
import { GithubTagsDatasource } from '../../datasource/github-tags';
Expand Down Expand Up @@ -152,6 +153,13 @@ export const upgradeableTooling: Record<string, ToolingDefinition> = {
extractVersion: '^v(?<version>\\S+)',
},
},
'dotnet-core': {
asdfPluginUrl: 'https://github.com/emersonsoares/asdf-dotnet-core',
config: {
datasource: DotnetVersionDatasource.id,
packageName: 'dotnet-sdk',
},
},
dprint: {
asdfPluginUrl: 'https://github.com/asdf-community/asdf-dprint',
config: {
Expand Down