Commit Graph

155 Commits

Author SHA1 Message Date
Rhys Arkins 7b1c1170a7 fix: log containerbaseDir (#17509) 2022-08-30 14:21:12 +02:00
Gabriel-Ladzaretti 21ab4bad63 feat(util/exec): enable process group handling on process termination (#17447) 2022-08-28 21:32:23 +03:00
Rhys Arkins f764f8879c feat(config): containerbaseDir (#17414) 2022-08-25 15:43:06 +00:00
Rhys Arkins ee6287971d refactor: use containerbase not buildpack terminology (#17398) 2022-08-25 06:59:55 +00:00
Gabriel-Ladzaretti cb53e18de8 chore(util/exec): remove unneeded renaming related TODOs (#17399) 2022-08-25 06:43:13 +00:00
Michael Kriese 60ed6ad40d feat(versioning): add python versioning for buildpack (#17147) 2022-08-12 06:24:56 +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
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 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
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
Gabriel-Ladzaretti 6202b1c264 refactor(util/exec): change mocked modules in existing tests (#16519) 2022-07-11 11:41:24 +02:00
RahulGautamSingh 3d31fa371d refactor(lib/util): strict null check for test files (#15812)
* add types for tmp

* expand files in lib/util

* update yarn lock

* Update tsconfig.strict.json

* util/exec

* util/git

* util/http

* Revert "util/exec"

This reverts commit 96cf479a1b.

* update strict.json

* redo util/exec

* revert util/git

* util/merge-confidence

* update util/git

* util/package-rules

* fix util/git

* util/template

* util/

* revert extras

* rm newline

* add tmp back

* apply suggestion from review

* util/cache

* more changes

* Update tsconfig.strict.json

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-06-19 21:17:46 +00:00
Rhys Arkins ff2318547d fix: log sidecar sha (#15499) 2022-05-07 16:22:04 +02:00
Rhys Arkins 16bd06381c fix: respect latest when selecting tool versions (#15481) 2022-05-06 09:53:28 +00:00
Michael Kriese 42824400d7 feat(manager:cocoapods): support binarySource=install for cocoapods (#15473)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2022-05-05 16:59:42 +02:00
Michael Kriese 03b28828f3 feat(manager:npm): support binarySource=install for yarn (#15414) 2022-05-04 08:32:15 +02:00
Michael Kriese 955b442871 refactor: strict null checks for util (#15150) 2022-04-17 11:07:22 +02:00
Michael Kriese c2adeff003 feat(manager:bundler): move constraint extraction to update artifacts (#15125)
* feat(manager:bundler): move constraint extraction to update artifacts

* fix: missing null checks

* chore: add comment

* chore: not null save transitives

* chore: fix snapshot
2022-04-15 18:30:34 +02:00
Michael Kriese 64f5bd5f03 test: enforce lint style rules (#15085) 2022-04-12 14:49:49 +00:00
Rhys Arkins dca3418bbd refactor: lib/modules (#14488)
Moves datasource, manager, platform and versioning code from lib/ into new lib/modules/

BREAKING CHANGE: External tools must update paths to datasource, manager, platform and versioning
2022-03-04 09:04:02 +01:00
Rhys Arkins 6c9aad38a8 refactor: remove unnecessarily long paths in imports and mocks (#14429) 2022-02-26 16:09:01 +00:00
Sergei Zharinov 8070f007a6 refactor: Use Windows-compatible regex for newlines (#13956) 2022-02-02 07:31:11 +00:00
Dan Ports 41f198c63c feat(manager/flux): Update system manifests. (#13675) 2022-01-29 06:30:02 +00:00
Rhys Arkins 3144a48f2e feat(helm): support binarySource=install (#13719) 2022-01-28 13:30:34 +00:00
Rhys Arkins 47d158d696 feat(poetry): support binarySource=install (#13794) 2022-01-25 15:45:28 +00:00
Rhys Arkins 6b0e896eb7 fix(buildpack): filter stable if no constraint (#13797) 2022-01-25 11:48:01 +01:00
Rhys Arkins d67436cc87 feat(bundler): support binarySource=install (#13780) 2022-01-24 16:39:22 +00:00
Rhys Arkins d2a47ce7e7 feat(npm): support binarySource=install for pnpm (#13723) 2022-01-21 18:03:15 +01:00
Sergei Zharinov 15a120847b test(lib/util): Refactor snapshot tests (#13289) 2021-12-27 11:28:10 +01:00
Michael Kriese 2b24a98359 refactor: update imports for esm (#13230)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2021-12-22 08:37:47 +00:00
Rhys Arkins 9bf5ba7b56 chore: log docker exec image 2021-12-20 09:28:39 +01:00
Sergei Zharinov 995df4d9a7 refactor(util/exec): Fix strict null errors (#12909)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2021-12-10 15:07:02 +01:00
Rhys Arkins a9d334874a feat: binarySource=install (#12961) 2021-12-10 10:56:00 +00:00
Rhys Arkins 2d50969550 chore: fix duplicate types import (#12973)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2021-12-06 12:41:43 +00:00
Rhys Arkins 99749f17f3 fix(npm): allow hash -d to fail (#12960) 2021-12-05 09:27:21 +01:00
Rhys Arkins 328de3fc27 refactor: exec types (#12942) 2021-12-04 07:12:27 +01:00
Rhys Arkins 38ae77eafc refactor(npm): move hash to allToolConfig (#12946) 2021-12-03 23:13:27 +01:00