mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 23:16:26 +00:00
feat(manager/asdf): Support gohugo plugin including extended_
version (#18987)
This commit is contained in:
parent
f31dacb8cd
commit
84bb830e00
2 changed files with 32 additions and 13 deletions
|
@ -58,6 +58,7 @@ elixir 1.14.1
|
||||||
elm 0.19.1
|
elm 0.19.1
|
||||||
erlang 25.1.2
|
erlang 25.1.2
|
||||||
gauche 0.9.12
|
gauche 0.9.12
|
||||||
|
gohugo extended_0.104.3
|
||||||
golang 1.19.2
|
golang 1.19.2
|
||||||
haskell 9.4.2
|
haskell 9.4.2
|
||||||
helm 3.10.1
|
helm 3.10.1
|
||||||
|
@ -180,6 +181,14 @@ dummy 1.2.3
|
||||||
versioning: 'semver',
|
versioning: 'semver',
|
||||||
depName: 'gauche',
|
depName: 'gauche',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
currentValue: '0.104.3',
|
||||||
|
datasource: 'github-releases',
|
||||||
|
packageName: 'gohugoio/hugo',
|
||||||
|
versioning: 'semver',
|
||||||
|
depName: 'gohugo',
|
||||||
|
extractVersion: '^v(?<version>\\S+)',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
currentValue: '1.19.2',
|
currentValue: '1.19.2',
|
||||||
datasource: 'github-tags',
|
datasource: 'github-tags',
|
||||||
|
|
|
@ -16,10 +16,27 @@ export type StaticTooling = Partial<PackageDependency> &
|
||||||
|
|
||||||
export type DynamicTooling = (version: string) => StaticTooling | undefined;
|
export type DynamicTooling = (version: string) => StaticTooling | undefined;
|
||||||
|
|
||||||
export const upgradeableTooling: Record<
|
export type ToolingConfig = StaticTooling | DynamicTooling;
|
||||||
string,
|
export interface ToolingDefinition {
|
||||||
{ config: StaticTooling | DynamicTooling; asdfPluginUrl: string }
|
config: ToolingConfig;
|
||||||
> = {
|
asdfPluginUrl: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
const hugoDefinition: ToolingDefinition = {
|
||||||
|
// This plugin supports the names `hugo` & `gohugo`
|
||||||
|
asdfPluginUrl: 'https://github.com/NeoHsu/asdf-hugo',
|
||||||
|
config: (version) => ({
|
||||||
|
datasource: GithubReleasesDatasource.id,
|
||||||
|
packageName: 'gohugoio/hugo',
|
||||||
|
versioning: semverVersioning.id,
|
||||||
|
extractVersion: '^v(?<version>\\S+)',
|
||||||
|
// The asdf hugo plugin supports prefixing the version with
|
||||||
|
// `extended_`. Extended versions feature Sass support.
|
||||||
|
currentValue: version.replace(/^extended_/, ''),
|
||||||
|
}),
|
||||||
|
};
|
||||||
|
|
||||||
|
export const upgradeableTooling: Record<string, ToolingDefinition> = {
|
||||||
awscli: {
|
awscli: {
|
||||||
asdfPluginUrl: 'https://github.com/MetricMike/asdf-awscli',
|
asdfPluginUrl: 'https://github.com/MetricMike/asdf-awscli',
|
||||||
config: {
|
config: {
|
||||||
|
@ -121,6 +138,7 @@ export const upgradeableTooling: Record<
|
||||||
versioning: semverVersioning.id,
|
versioning: semverVersioning.id,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
gohugo: hugoDefinition,
|
||||||
golang: {
|
golang: {
|
||||||
asdfPluginUrl: 'https://github.com/kennyp/asdf-golang',
|
asdfPluginUrl: 'https://github.com/kennyp/asdf-golang',
|
||||||
config: {
|
config: {
|
||||||
|
@ -157,15 +175,7 @@ export const upgradeableTooling: Record<
|
||||||
extractVersion: '^v(?<version>\\S+)',
|
extractVersion: '^v(?<version>\\S+)',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
hugo: {
|
hugo: hugoDefinition,
|
||||||
asdfPluginUrl: 'https://github.com/NeoHsu/asdf-hugo',
|
|
||||||
config: {
|
|
||||||
datasource: GithubReleasesDatasource.id,
|
|
||||||
packageName: 'gohugoio/hugo',
|
|
||||||
versioning: semverVersioning.id,
|
|
||||||
extractVersion: '^v(?<version>\\S+)',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
idris: {
|
idris: {
|
||||||
asdfPluginUrl: 'https://github.com/asdf-community/asdf-idris',
|
asdfPluginUrl: 'https://github.com/asdf-community/asdf-idris',
|
||||||
config: {
|
config: {
|
||||||
|
|
Loading…
Reference in a new issue