Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
renovate
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
Renovate Bot
renovate
Commits
99c4d1b0
Unverified
Commit
99c4d1b0
authored
2 years ago
by
Joshua Tang
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
feat(fvm): update to use flutter version datasource (#15765)
parent
298ca998
Loading
Loading
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
lib/modules/manager/fvm/extract.spec.ts
+2
-2
2 additions, 2 deletions
lib/modules/manager/fvm/extract.spec.ts
lib/modules/manager/fvm/extract.ts
+2
-2
2 additions, 2 deletions
lib/modules/manager/fvm/extract.ts
lib/modules/manager/fvm/index.ts
+2
-2
2 additions, 2 deletions
lib/modules/manager/fvm/index.ts
with
6 additions
and
6 deletions
lib/modules/manager/fvm/extract.spec.ts
+
2
−
2
View file @
99c4d1b0
...
...
@@ -31,7 +31,7 @@ describe('modules/manager/fvm/extract', () => {
expect
(
res
.
deps
).
toEqual
([
{
currentValue
:
'
2.10.1
'
,
datasource
:
'
github-tags
'
,
datasource
:
'
flutter-version
'
,
depName
:
'
flutter
'
,
packageName
:
'
flutter/flutter
'
,
},
...
...
@@ -46,7 +46,7 @@ describe('modules/manager/fvm/extract', () => {
expect
(
res
.
deps
).
toEqual
([
{
currentValue
:
'
stable
'
,
datasource
:
'
github-tags
'
,
datasource
:
'
flutter-version
'
,
depName
:
'
flutter
'
,
packageName
:
'
flutter/flutter
'
,
},
...
...
This diff is collapsed.
Click to expand it.
lib/modules/manager/fvm/extract.ts
+
2
−
2
View file @
99c4d1b0
import
is
from
'
@sindresorhus/is
'
;
import
{
logger
}
from
'
../../../logger
'
;
import
{
GithubTags
Datasource
}
from
'
../../datasource/
github-tags
'
;
import
{
FlutterVersion
Datasource
}
from
'
../../datasource/
flutter-version
'
;
import
type
{
PackageDependency
,
PackageFile
}
from
'
../types
'
;
interface
FvmConfig
{
...
...
@@ -33,7 +33,7 @@ export function extractPackageFile(
const
dep
:
PackageDependency
=
{
depName
:
'
flutter
'
,
currentValue
:
fvmConfig
.
flutterSdkVersion
,
datasource
:
GithubTags
Datasource
.
id
,
datasource
:
FlutterVersion
Datasource
.
id
,
packageName
:
'
flutter/flutter
'
,
};
return
{
deps
:
[
dep
]
};
...
...
This diff is collapsed.
Click to expand it.
lib/modules/manager/fvm/index.ts
+
2
−
2
View file @
99c4d1b0
import
{
GithubTags
Datasource
}
from
'
../../datasource/
github-tags
'
;
import
{
FlutterVersion
Datasource
}
from
'
../../datasource/
flutter-version
'
;
import
*
as
semverVersioning
from
'
../../versioning/semver
'
;
export
{
extractPackageFile
}
from
'
./extract
'
;
export
const
supportedDatasources
=
[
GithubTags
Datasource
.
id
];
export
const
supportedDatasources
=
[
FlutterVersion
Datasource
.
id
];
export
const
defaultConfig
=
{
fileMatch
:
[
'
(^|
\\
/)
\\
.fvm
\\
/fvm_config
\\
.json$
'
],
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment