Commit graph

889 commits

Author SHA1 Message Date
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
Michael Kriese
62d5d670bf
test(git): tmp dir can be missing (#16585) 2022-07-14 16:17:19 +03:00
Sergei Zharinov
d0fe5f904e
feat(fs): Scope checks for filesystem functions (#16511) 2022-07-14 07:53:26 +00:00
renovate[bot]
210695c1a0
build(deps): update dependency git-url-parse to v12 (#16458)
* build(deps): update dependency git-url-parse to v12

* fix: add workaround

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-07-11 19:37:56 +00:00
Gabriel-Ladzaretti
6202b1c264
refactor(util/exec): change mocked modules in existing tests (#16519) 2022-07-11 11:41:24 +02:00
RahulGautamSingh
e10aa6aa5a
fix: check cache before cloning (#16517) 2022-07-11 10:58:51 +02:00
Sergei Zharinov
e26130329d
refactor(fs): Add tests for every filesystem function (#16495)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2022-07-09 18:50:45 +00:00
Sergei Zharinov
83f67c27d5
refactor(fs): Rename getSubDirectory to getParentDir (#16446)
* refactor(fs): Rename `getSubDirectory` to `getParentDir`

* Add tests for `getSiblingFileName`

* fix

* fix
2022-07-07 06:44:21 +00:00
Yun Lai
793095c1a0
fix(git): add options to getRepoStatus (#16253) 2022-07-06 05:17:39 +00:00
Sergei Zharinov
c866fd06fc
fix(github): Return remote commit hash for platformCommit=true (#16391) 2022-07-03 08:25:17 +00:00
Sergei Zharinov
b5df686fb7
refactor(github): Introduce misc query function for GraphQL (#16387)
* refactor(github): Introduce misc `query` function for GraphQL

* Update lib/modules/datasource/github-releases/cache/cache-base.ts

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

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-07-02 15:24:17 +02:00