Commit Graph

3913 Commits

Author SHA1 Message Date
IKEDA Sho 2dbc15e679 docs(manager): Set displayName and url for nodenv and nvm managers (#16878) 2022-08-01 04:48:45 +00:00
IKEDA Sho 72db89f6e5 refactor: Fix constraint typos (#16879) 2022-08-01 04:02:55 +00:00
Sergei Zharinov e4dbd4ad49 fix(ci): Restrict template expressions (#16834)
* fix(ci): Restrict template expressions

* Fix

* Fix

* Fix
2022-07-30 16:28:31 +02:00
Yun Lai b696abb3c2 feat: add Hermit package manager (#16258)
* feat: add Hermit package manager

* fix: pass bin directory into getRepoStatus as string rather than an array

* fix: fix up hermit manager implementations

* add docker support in exec
* move fs related operations back into  util/fs
* remove ENVVar passed on by process.env
* set concurrency in pMap
* use for instead of pMap for concurrency = 1
* use regex to pick up package reference parts

* fix: fix manager updateArtifacts test after change

* Update lib/modules/manager/hermit/extract.ts

Co-authored-by: Philip <42116482+PhilipAbed@users.noreply.github.com>

* fix: fix up test and docker reference for hermit manager

* test refer to internal fs
* docker image change to sidecar
* only symlink are read for the changed file content after hermit
  install
* no more global mock in artifacts test

* fix: use warn instead of error so error better flows up in hermit manager

* fix: partial for test type, use throw instead of reject

* fix: update snapshot

* fix: combine install packages, also make extractPackageFile async

* fix: remove weird generated readLocalSynmlink in test

* fix: removes old test

* fix: use ensureLocalPath and fix test coverage

* fix: more test coverage

* fix: use ensureLocalPath in readLocalSymlink

* Apply suggestions from code review

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>

* fix: remove unused functions and types

* Apply suggestions from code review

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>

* Apply suggestions from code review

Co-authored-by: Sergei Zharinov <zharinov@users.noreply.github.com>

* fix: use execSnapshots and for of loop when returning the result

* Update lib/modules/manager/hermit/artifacts.spec.ts

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>

* fix: move exports below imports

Co-authored-by: Philip <42116482+PhilipAbed@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Sergei Zharinov <zharinov@users.noreply.github.com>
2022-07-30 08:41:45 +00:00
Michael Kriese ab7ddb5e3c feat(platform/gitea): support automergeStrategy (#16851)
* feat(platform/gitea): support `automergeStrategy`

* chore: revert change

* Update docs/usage/configuration-options.md

* Update docs/usage/configuration-options.md
2022-07-29 14:40:26 +02:00
Michael Kriese a3d1235032 feat(manager/pipenv): support binarySource=install (#16828)
* feat(manager/pipenv): support binarySource=install

* docs: update docs

* fix: linting
2022-07-28 17:17:02 +00:00
IKEDA Sho 16705ed083 docs(manager/argocd): Set displayName and url (#16838) 2022-07-28 16:15:33 +00:00
Michael Kriese cf7bb3226d feat(manager/gradle-wrapper): support binarySource=install (#16830)
* feat(manager/gradle-wrapper): support `binarySource=install`

* docs: update docs
2022-07-28 13:47:56 +00:00
Michael Kriese a7a44b32db fix(manager/pip_requirements): remove invalid tagScheme (#16829) 2022-07-28 10:27:12 +00:00
Przemysław Romanik ac7aa81eda docs: Gitea account must have full name set for Git identity (#16792)
* Gitea account must have full name set for Git identity

* Update lib/modules/platform/gitea/index.md

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>

* Update index.md

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2022-07-27 17:33:52 +00:00
Sergei Zharinov e4716ead14 refactor(github): Simplify long-form condition in findPr (#16813) 2022-07-27 16:27:46 +00:00
Sergei Zharinov eed6fe3349 refactor(github): Sort cached PR list (#16815) 2022-07-27 16:09:03 +00:00
Sergei Zharinov d774d82fcd test(github): Remove unnecessary type casts (#16816) 2022-07-27 15:44:37 +00:00
Sergei Zharinov 1c2a78bd67 test(sbt-package): Refactor tests (#16804) 2022-07-27 13:40:15 +02:00
Thorsten Essig 5bbb4c6054 fix(datasource/go): consider all available datasources for go-import (#16544)
* fix(16543): consider all available datasources for go-import

* fix(datasource/go): add test for go-import with gitlab datasource

* refactor: rename param to reduce diff

* fix(datasource/go): return early on datasource detection

Co-authored-by: Rhys Arkins <rhys@arkins.net>
2022-07-27 09:13:39 +02:00
IKEDA Sho caa720401a docs(manager/gomod): Set displayName and url (#16796) 2022-07-27 08:51:17 +03:00
Gabriel-Ladzaretti 871b069d83 fix(logs): remove variable from a template literal for a warn message for gradle (#16789)
logs: tidy up warn message for grade file not found
2022-07-26 15:03:05 +00:00
Piotr Krzemiński adccb9c0ca feat(manager): add support for Kotlin Script (#16684) 2022-07-26 13:37:34 +02:00
Sebastian Poxhofer 90f85b9958 feat(manager/fleet): implement Rancher Fleet manager (#16138)
* feat(manager/fleet): implement Rancher Fleet manager

* Apply suggestions from code review

Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>

* Update lib/modules/manager/fleet/extract.spec.ts

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>

* docs(fleet): add tsdocs

* fixup test null checks

* docs: add default filematch

* chore: rename tempDep to dep

* apply change requests

* catch exceptions from yaml-js

* trigger yaml parse error

Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-07-26 08:48:50 +00:00
Michael Kriese 8270d5512d refactor: fix lint issues (#16779)
* refactor: fix lint issues

* Update lib/renovate.ts

* chore: revert toplevel await for ts
2022-07-26 08:32:12 +00:00
IKEDA Sho 8bff91a48b feat(datasource): add cpan datasource (#16545)
* feat(datasource): add cpan datasource

* Update perl versioning's readme

* Extract copystr function to lib/util/string.ts

* Remove unnecessary optional chaining

* Use registryUrl and logger.trace

* Use `perl` versioning's `isStable`

* Remove possibly unnecessary try/catch

* Use MetaCPAN API

* Use reduce

* Use maturity field for `isStable` handling

https://metacpan.org/pod/CPAN::DistnameInfo#maturity

* Revert "Extract copystr function to lib/util/string.ts"

This reverts commit 51ebf55c90.

# Conflicts:
#	lib/modules/datasource/cpan/index.ts

* Remove downloadUrl

* Extract types

* Use toMatchObject

* Improve tests

* Rename to MetaCpanSearchResult

* Rename to searchUrl

* Rename to MetaCpanFileSearchResult and add tsdoc

* Use for...of over reduce

* More safely handle the response JSON

* Use joinUrlParts

* Don't embed distribution info

* Split tsdoc comments
2022-07-26 06:39:51 +00:00
IKEDA Sho 6f42227e5e docs(manager/cocoapods): Configure ModuleApi's displayName and url (#16760)
* docs(manager/cocoapods): Configure `ModuleApi`'s displayName and url

* Revert export order

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-07-26 04:18:43 +00:00
Johannes Feichtner d6fa2fefda fix(gradle): silence warning for file not found via "apply from" (#16767) 2022-07-25 19:06:56 +02:00
Michael Kriese 17387fcf48 fix(manager/nuget): skip invalid xml files (#16758) 2022-07-25 14:54:46 +02:00
Michael Kriese 2bbbc956e9 fix(manager/nuget): Skip dep if version is undefined (#16757) 2022-07-25 12:31:53 +00:00
Maron 6246a61bf4 fix(datasource/docker): Docker tags list for library images not working (#16509) 2022-07-25 08:23:42 +02:00
IKEDA Sho 1ad61a7ebd refactor(manager): consistently write as export const language = ... (#16739)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2022-07-25 06:13:57 +00:00
Johannes Feichtner a3c3f11860 fix(gradle): adjust max. recursion depth and logger warning (#16734) 2022-07-24 13:28:04 +02:00
Sergei Zharinov 6e01af9320 fix(bundler): fix recursive resolved dependencies (#16462)
* fix(bundler): fix recursive resolved dependencies

* Remove ugly type assertions

* fixes

* fix

* fix

* Add recursion limit

* Extract unique packages

* pr fixes

* Add `exec-error.ts`

* fix

Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-07-24 11:45:01 +03:00
foolioo bb52f9785a docs(regex): clarify regex manager limitations (#16709) 2022-07-24 09:25:45 +03:00
Johannes Feichtner 1b36708c64 feat(gradle): always add depType to extracted dependencies (#16725) 2022-07-24 06:14:29 +00:00
Michael Kriese 6854145528 feat(manager/elixir): support install binary source (#16710)
* feat(manager/elixir): support install binary source

* test: fix snapshot
2022-07-22 16:35:20 +00:00
IKEDA Sho 2241daaada refactor(datasource): Prefer interface over type (#16707)
https://github.com/renovatebot/renovate/blob/main/docs/development/best-practices.md#general
2022-07-22 12:18:58 +00:00
Michael Kriese ed538ac304 fix(manager/kubernetes): log filename on parse error (#16676) 2022-07-22 09:17:16 +00:00
Michael Kriese 6c78237993 test: simplify exec mock (#16698) 2022-07-22 07:42:30 +00:00
Michael Kriese 13027fd4f5 fix(manager/nuget): optimize xml error handling (#16681)
* fix(manager/nuget): optimize xml error handling

* Update lib/modules/manager/nuget/package-tree.spec.ts

Co-authored-by: Sergei Zharinov <zharinov@users.noreply.github.com>

Co-authored-by: Sergei Zharinov <zharinov@users.noreply.github.com>
2022-07-22 09:15:25 +02:00
Michael Kriese c95024bb2c fix(manager/argocd): catch invalid definitions (#16675) 2022-07-22 06:11:01 +00:00
IKEDA Sho 497b5de6c2 test(datasource): Avoid snapshots for testing EXTERNAL_HOST_ERROR (#16692) 2022-07-22 06:49:05 +02:00
Philip b8c5a87bc4 fix(manage/gomod): Golang fix pin (#16682)
* Add .whitesource configuration file (#3)

Co-authored-by: whitesource-for-github-com[bot] <50673670+whitesource-for-github-com[bot]@users.noreply.github.com>

* Update .whitesource

* build(deps): update dependency simple-git to v3.5.0 (#17)

Co-authored-by: whitesource-for-github-com[bot] <whitesource-for-github-com[bot]@users.noreply.github.com>

* golang fix pin

* golang fix pin

Co-authored-by: whitesource-for-github-com[bot] <50673670+whitesource-for-github-com[bot]@users.noreply.github.com>
Co-authored-by: whitesource-for-github-com[bot] <whitesource-for-github-com[bot]@users.noreply.github.com>
2022-07-21 17:29:15 +02:00
Michael Kriese 4f82df4c3d feat(buildpack): enable cache (#16591) 2022-07-21 07:00:02 +00:00
Johannes Feichtner a6b747444a feat(gradle): add support for further apply-from patterns (#16507) 2022-07-20 05:45:31 +00:00
Sebastian Poxhofer d0926c3d61 fix(manager/regex): depName requirement if using the recursive strategy (#16225)
* fix(manager/regex): depName requirement if using the recursive strategy

* chore(manager/regex): implement code suggestions

* chore: replace Boolean with Is function

* chore: abort if match strings are empty

* refactor: do not parse regexes on each recursion and filter after all matches are processed

* fixup! test name

* Revert "chore: abort if match strings are empty"

This reverts commit bf41a92f

* refactor: extract inline function

* fix: out-of-bound check

* feat: allow currentDigest as valid alternative to currentValue

* Update lib/modules/manager/regex/utils.ts

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>

* chore: prettier

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-07-19 12:02:42 +00:00
Hasan Awad 3c8d1d6076 refactor(darasource): checks and massage url in metadata (#16632)
* refactor hostname check

* changes

* switch back check

* changes

* changes

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-07-19 05:31:01 +00:00
IKEDA Sho ef11336ed9 refactor(versioning): use versioning's id consistently (#16640) 2022-07-19 07:36:52 +03:00
Philip a6e5eefb64 feat(manager/gomod): support updating go version in go.mod files (#16541) 2022-07-18 06:22:50 +00:00
cl 496e12f795 feat: add librarian-puppet support (#14789) 2022-07-17 05:27:35 +03:00
Rhys Arkins 0fc2a55624 fix(git-refs): gracefully ignore git-refs auth error (#16617) 2022-07-16 15:48:26 +02:00
Michael Kriese 71f96f1f88 fix(manager/kubernetes): filter invalid documents (#16598) 2022-07-15 15:00:53 +00:00
renovate[bot] 0ed7072a1f chore(deps): update dependency type-fest to v2.16.0 (#16473)
* chore(deps): update dependency type-fest to v2.16.0

* chore: fix type issues

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-07-15 10:09:50 +00:00
Yun Lai 9280430f4c feat: add datasource for Hermit package manager (#16257)
* feat: add datasource for Hermit package manager

* fix: make hermit datasource use http.stream instead of http.get

* chore: inline small function and return null on error in hermit datasource

* fix: use regExp to extract owner and repo from registryUrl

* fix: use http from super & use error instead of debug on datasource error

* fix: fix type check failure for github-release test

* Update lib/modules/datasource/hermit/index.spec.ts

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>

* Update lib/modules/datasource/hermit/index.spec.ts

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>

* Update lib/modules/datasource/hermit/index.spec.ts

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>

* Update lib/modules/datasource/hermit/index.ts

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>

* fix: wrap JSON.parse to avoid breaking process, plus more comment onto the search manifest streaming process

* fix: add test to cover the invalid json case

* fix: change some logger.errors to logger.warn in hermit datasource, error will exit the whole process

* Update lib/modules/datasource/hermit/index.spec.ts

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>

* Update lib/modules/datasource/hermit/index.spec.ts

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>

* Update lib/modules/datasource/hermit/index.ts

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>

* Update lib/modules/datasource/hermit/index.ts

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>

* Update lib/modules/datasource/hermit/index.ts

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>

* fix: use parseUrl and use hermit as GithubHttp id

* fix: added test to include HermitDatasource type in GITHUB_API_USING_HOST_TYPES

* fix: handle invalid url & achieve code coverage

* fix: move url parsing to parent function

* Update lib/modules/datasource/hermit/index.ts

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>

* chore: clean up HermitDataSource class doc

* fix: getHermitSearchManifest cache key function should expect undefined

* fix: pass GetReleasesConfig into getHermitSearchManifest to get proper caching working

* Update lib/modules/datasource/hermit/readme.md

Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>

* Update lib/modules/datasource/hermit/readme.md

Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>

* Update lib/modules/datasource/hermit/readme.md

Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>

* Update lib/modules/datasource/hermit/readme.md

Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>

* Update lib/modules/datasource/hermit/readme.md

Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>

* chore: fix json block in datasource readme.md

* Put packageRules example in step 4

* fix: fix lint error

* fix: pass parsedUrl into getHermitSearchManifest, add warning and simplifies type

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
2022-07-15 09:57:05 +00:00