* fix: join env var lines with os.EOL to fix test failure on different systems
* fix: update test data to achieve full test coverage
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
* test(bazel): Refactor tests for update function
- use smaller fragment for each use-case
- remove fixture usage
- fix regex to support `maybe`
* Compact formatting
* Don't use `replaceAll`
* Fix coverage
* fix: fix failed hermit binary source tests due to findUp module acts differently in windows
* fix: set localDir in GlobalConfig in getHermitEnvs test
* Apply suggestions from code review
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
* fix: added two more mockResolvedValueOnce for extra test case and remove mockResolvedValueOnce('')
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
* refactor(repository/config-migration): dont show file name in pr title
* refactor(repository/config-migration): dont show file name in pr title
* refactor(repository/config-migration): dont show file name in pr title
* refactor(repository/config-migration): dont show file name in pr title
* refactor(repository/config-migration): dont show file name in pr title
* refactor(repository/config-migration): dont show file name in pr title
* refactor(repository/config-migration): dont show file name in pr title
* Apply suggestions from code review
Co-authored-by: Nabeel Saabna <48175656+nabeelsaabna@users.noreply.github.com>
* refactor(repository/config-migration): dont show file name in pr title
* refactor(repository/config-migration): dont show file name in pr title
* refactor(repository/config-migration): dont show file name in pr title
* refactor(repository/config-migration): dont show file name in pr title
* refactor(repository/config-migration): dont show file name in pr title
Co-authored-by: Nabeel Saabna <48175656+nabeelsaabna@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
* 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>
* 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>
* 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>
* 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
* docs(manager/cocoapods): Configure `ModuleApi`'s displayName and url
* Revert export order
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
* refactor(util): use spawn instead of exec
- Use child_process.spawn instead of child_process.exec
* refactor(util): use spawn instead of exec
- Use child_process.spawn instead of child_process.exec
* refactor(util): use spawn instead of exec
- Use child_process.spawn instead of child_process.exec
* refactor(util): use spawn instead of exec
- Use child_process.spawn instead of child_process.exec
* refactor(util): use spawn instead of exec
- init spawn-util
* refactor(util): use spawn instead of exec
- spawn-util
* refactor(util): use spawn instead of exec
- init index-spawn.spec.ts
* refactor(util): use spawn instead of exec
- fixed various tests
* refactor(util): use spawn instead of exec
- fix all artifacts.spec.ts
* refactor(util): use spawn instead of exec
- fix all artifacts.spec.ts
* refactor(util): use spawn instead of exec
- fix npm post update imports
* refactor(util): use spawn instead of exec
- revert renaming to minimize PR diff
* refactor(util): use spawn instead of exec
- revert renaming to minimize PR diff
* refactor(util): use spawn instead of exec
- revert renaming to minimize PR diff
* refactor(util): use spawn instead of exec
- revert renaming to minimize PR diff
* refactor(util): use spawn instead of exec
- revert renaming to minimize PR diff
- destroy stdio when terminating child process
* refactor(util): use spawn instead of exec
- delete and revert dev related changes
* refactor(util): use spawn instead of exec
- fix support for windows
* refactor(util): use spawn instead of exec
- handle SIGSTOP and such
- add test coverage
* refactor(util): use spawn instead of exec
- now converts to strings when resolving/rejecting
* refactor(util): use spawn instead of exec
- logs improvements
- force shell (exec like)
- fix tests
* refactor(util): use spawn instead of exec
- strongly type listeners
* refactor(util): use spawn instead of exec
- create helper mock for spawn
* refactor(util): use spawn instead of exec
- cr changes
* Update lib/util/exec/common.ts
Co-authored-by: Sergei Zharinov <zharinov@users.noreply.github.com>
* refactor(util): use spawn instead of exec
- documentation
* refactor(util): use spawn instead of exec
- revert unnecessary formatting
* refactor(util): use spawn instead of exec
* refactor(util): use spawn instead of exec
- added ExecError class
* refactor(util): use spawn instead of exec
- exec-error.ts restructure
* refactor(util): use spawn instead of exec
* Apply suggestions from code review
Co-authored-by: Sergei Zharinov <zharinov@users.noreply.github.com>
* refactor(util): use spawn instead of exec
* refactor(util): use spawn instead of exec
* refactor(util): use spawn instead of exec
- deprecated RawExecOptions.encoding property
* refactor(util): use spawn instead of exec
* refactor(util): use spawn instead of exec
* refactor(util): use spawn instead of exec
Co-authored-by: Sergei Zharinov <zharinov@users.noreply.github.com>
* migrate depTypes
* migrate more depTypes
* Revert "migrate more depTypes"
This reverts commit 3f97d9eb82.
* more migrations
* Update dep-types-migration.ts
* Update dep-types-migration.ts
* refactor: add tests and revert some changes
* add separate class for each dep-type
* Update peer-dependencies-migration.ts
* add tests
* update types
* modify test
* - Use regex to detect all depTypes
- Fix arrMigrate -> arrMigrate.migratedConfig
* add new interface for depTypes
* remove if-block
* Update lib/config/migrations/custom/dep-types-migration.ts
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
* run prettier
* Update lib/config/migrations/custom/dep-types-migration.ts
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
* 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>
* 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>
* feat: add versioning for Hermit package manager
* Update lib/modules/versioning/hermit/index.ts
Co-authored-by: Jamie Magee <jamie.magee@gmail.com>
* Update lib/modules/versioning/hermit/index.ts
Co-authored-by: Jamie Magee <jamie.magee@gmail.com>
* Update index.ts index.spec.ts and readme.md according to PR comments
* fix: fix versioning test double negation and _parseVersion function which is just for testing
* fix: simplify hermit versioning implementation as suggested
* fix: use _compare to simplify versioning implementation
* fix: reword version in hermit versioning and make _isChannel & _getChannel static
* fix: remove duplicated title in test and make _config readonly
Co-authored-by: Jamie Magee <jamie.magee@gmail.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
* feat(manager/gitlabci): add support for CI_REGISTRY
* fix: pass correct property
* chore: adapt tests
* docs; add documentation for the new option
* test: extend test cases
* fix: do the abc properly
* refactor: switch to using registryAliases option
* docs: mention registry variable
* style: remove extra heading
* docs: fix sentence
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
* docs: move documentation to managers
* docs: fix formatting
* refactor: handle default value in function body
* refactor: remove unused function
* refactor: move registry alias handling to dockerfile manager
* style: remove unused import
* refactor: use match groups directly
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
* refactor: add dockerfile manager tests
* chore: fix variable name
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>