Commit Graph

899 Commits

Author SHA1 Message Date
Michael Kriese 9caf45ed43 fix(git): wrong git url handling (#17380)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2022-08-24 19:41:43 +00:00
Sergei Zharinov 57ade2b33e refactor(cache): Restore each revision with own separate method (#17364) 2022-08-23 20:27:34 +02:00
Sergei Zharinov 9e2c81f0ef refactor(cache): Explicit types for different cache revisions (#17362) 2022-08-23 17:35:09 +02:00
Michael Kriese ae2e584c18 refactor(repository/cache): fix types and log errors (#17355)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2022-08-23 07:19:10 +00:00
Gabriel-Ladzaretti f93927af63 refactor(repo/cache): handle data parsing inside repository base class (#17346)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-08-23 04:22:32 +00:00
Sergei Zharinov 064c1e9204 refactor(cache): Make read method return unknown type (#17335) 2022-08-22 20:48:49 +02:00
RahulGautamSingh 1a25ac6fc3 feat: use cached configHash to prevent branch updates (#16661) 2022-08-22 09:01:48 +00:00
Gabriel-Ladzaretti 039fce8dc6 refactor(repository/cache): add support for adding various cache clients (#17146)
Co-authored-by: Nabeel Saabna <48175656+nabeelsaabna@users.noreply.github.com>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-08-21 12:53:20 +00:00
RahulGautamSingh f9b2f816cc feat: replace fast-safe-stringify with safe-stable-stringify (#17251) 2022-08-19 15:58:11 +02:00
Michael Kriese 0316a5e62d test: use jest v29 (#17151) 2022-08-16 14:22:29 +02:00
Hasan Awad 719ab9be4a fix(manager/gitlabci): clean more than one slash (#17132) 2022-08-14 15:57:37 +00:00
RahulGautamSingh 2d71049650 test: add test for empty string (#17162) 2022-08-13 09:47:06 +00:00
Michael Kriese 60ed6ad40d feat(versioning): add python versioning for buildpack (#17147) 2022-08-12 06:24:56 +00:00
Michael Kriese 321afb5ede fix(manager/gomod): fix auth (#17140)
* fix(manager/gomod): fix auth

* fix: add another github url

* test: fix coverage

* Update lib/util/git/auth.spec.ts

Co-authored-by: Nabeel Saabna <48175656+nabeelsaabna@users.noreply.github.com>

Co-authored-by: Nabeel Saabna <48175656+nabeelsaabna@users.noreply.github.com>
2022-08-12 05:12:30 +00:00
Michael Kriese f684da8c2f fix(buildpack): use poetry versioning for python (#17129)
* fix(buildpack): use poetry versioning for python

* test: fix tests
2022-08-11 08:59:04 +00:00
Sebastian Poxhofer 726b97b2e2 fix(package-rules): remove edge case if no depName packageRules are defined (#16930) 2022-08-10 17:02:48 +02:00
Michael Kriese 2546c03f6c feat(changelogs): defer retrieval if not required for templates (#17073) 2022-08-10 06:19:17 +00:00
Sergei Zharinov 35df2bdb7c fix(template): Use proxy instead of deep clone (#17075) 2022-08-09 17:19:03 +00:00
Hasan Awad 4ead106f81 feat(util/template): add prettyNewMajor and prettyNewVersion field (#16831)
* initial

* expose prettyNewVersion and prettyNewMajor

* tests

* revert change

* simplify

* test naming

* documentation

* documentation

* remove wrong documentation

* expose template finction

* tests naming

* combine condition

* Update docs/usage/templates.md

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

* remove unecessary nullish op

* Update docs/usage/templates.md

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

* Expose prettyVersion and prettyMajor

* documentation

* remove function and use regex

* lexographic order

* tests need fixing

* add tests

* Captial letter

* renaming and prettyNewMajor

* space

* move to upgrade interface

* use new fields where v is prepended manually

* move to interface

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2022-08-08 07:50:36 +00:00
Yun Lai 1111b322f5 fix(hermit): findUpLocal expects relative cwd, fix incorrect hermit env in nested directory setup (#17031) 2022-08-08 06:15:45 +00:00
Rhys Arkins 53f687898e fix(npm): use node versioning for node (#17014)
Closes #17013
2022-08-06 06:27:47 +00:00
Michael Kriese 4573bd78e6 feat(manager/npm): lerna buildpack support (#16991) 2022-08-05 15:00:34 +00:00
Yun Lai 44059c3e20 fix: join env var lines with os.EOL to fix test failure on different systems (#16993)
* 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>
2022-08-05 12:06:59 +00:00
Michael Kriese 9b3a3f8d11 fix(buildpack): execute preCommads on install mode (#16995) 2022-08-05 12:20:22 +02:00
Yun Lai 87fc22a4ce fix: fix failed hermit binary source tests due to findUp module acts differently in windows (#16985)
* 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>
2022-08-05 09:21:54 +00:00
Yun Lai f07dcfb03a feat: add hermit binary source (#16259) 2022-08-05 05:17:11 +00:00
Michael Kriese 3b699e9f7e feat(manager/npm): prepare for buildpack support (#16979)
* feat(manager/npm): prepare for buildpack support

* chore: fixes
2022-08-04 21:18:43 +02:00
Gabriel-Ladzaretti 257d9a9d8e fix(core/exec): use nodejs style error messages when throwing (#16961) 2022-08-04 14:29:11 +00:00
Michael Kriese 1bc8fee494 refactor: cleanup http option interface (#16967) 2022-08-04 12:54:52 +02:00
Michael Kriese 61c045ca2f feat: use sha512 for hashes (#16907) 2022-08-02 11:36:26 +02:00
Sergei Zharinov f8c789efb4 feat(github): Log warning when GitHub token is not configured (#16566)
* feat(github): Log warning when GitHub token is not configured

* Check `sourceUrl`

* Add tests

* Fix test

* Fix

* Remove `sourceUrl` check

* Test nullable input

* Fix nulls
2022-08-01 06:16:09 +00:00
Rhys Arkins bba3c782e2 chore: fix packageRules test (#16866) 2022-07-30 07:49:05 +03:00
Michael Kriese 2c5fd14e25 fix(git): remove wrong submodule file filter (#16848) 2022-07-29 08:32:05 +00: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
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 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
Yun Lai f1bcafc584 feat(fs): add localPathIsSymbolicLink and readLocalSymlink (#16673)
* fix: add localPathIsSymbolicLink and readLocalSymlink to fs module

* Update lib/util/fs/index.ts

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

* Update lib/util/fs/index.ts

* Apply suggestions from code review

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

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Sergei Zharinov <zharinov@users.noreply.github.com>
2022-07-26 08:19:20 +00:00
Gabriel-Ladzaretti 2446f446b7 fix(git/cache): getCachedBehindBaseResult returns true when branch is not modified (#16752) 2022-07-26 04:41:09 +00:00
Gabriel-Ladzaretti 24a237c15b fix(git/cache): getCachedBranchParentShaResult returns unexpected undefined (#16762) 2022-07-25 20:23:25 +02:00
RahulGautamSingh 9778ca67d9 feat: use getBranchParentSha cached result (#16724) 2022-07-24 19:49:39 +02: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
Gabriel-Ladzaretti 892595aea8 feat(util/exec): use spawn instead of exec (#16414)
* 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>
2022-07-22 15:43:28 +00:00
Michael Kriese 6c78237993 test: simplify exec mock (#16698) 2022-07-22 07:42:30 +00:00
Michael Kriese 4f82df4c3d feat(buildpack): enable cache (#16591) 2022-07-21 07:00:02 +00:00
RahulGautamSingh 93707c1ed7 feat: use isBranchBehindBase cached result (#16595) 2022-07-21 07:48:02 +02:00
RahulGautamSingh 54cff9aeb8 refactor: throw error if issue with git (#16618) 2022-07-18 12:33:20 +00:00
Michael Kriese 47b9493fe2 test(git): raise timeout to 60s (#16599) 2022-07-15 16:47:39 +02:00
RahulGautamSingh c7507255b7 refactor: rename isBranchStale -> isBranchBehindBase (#16577)
* rename

* rename to isBranchBehindBase

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-07-15 09:21:32 +00:00
RahulGautamSingh f506580e40 fix: add repoCache-check before cloning (#16533) 2022-07-15 09:09:08 +02:00
Michael Kriese ad70360fda fix(utils/fs): make assertions windows compatible (#16583)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2022-07-14 17:33:28 +02:00