Rhys Arkins
4c88498544
fix: debug not warn for file access errors
2022-09-27 12:05:07 +02:00
Johannes Feichtner
aaaa6a1cfe
refactor: extract getLockFileContentMap() into fs utils ( #17962 )
2022-09-25 16:31:11 +02:00
Michael Kriese
10fd0f2827
fix(cache/repository): don't log error for non-existant files ( #17427 )
2022-08-26 12:25:35 +00:00
Michael Kriese
0316a5e62d
test: use jest v29 ( #17151 )
2022-08-16 14:22:29 +02: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
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
Sergei Zharinov
d0fe5f904e
feat(fs): Scope checks for filesystem functions ( #16511 )
2022-07-14 07:53:26 +00: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
Sergei Zharinov
2b43f273bf
refactor(fs): Remove proxies.ts
file ( #16325 )
...
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-07-01 14:57:30 +02:00
Sergei Zharinov
11f41825ca
fix(fs): Windows CI tests ( #16318 )
2022-06-29 07:57:44 +00:00
Sergei Zharinov
bfc393ef00
refactor(fs): Don't proxy writeFile
function ( #16310 )
...
* refactor(fs): Don't proxy `writeFile` function
* Fix
* Update lib/workers/global/index.spec.ts
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-06-29 06:23:36 +00:00
Sergei Zharinov
851d8f4f7a
refactor(fs): Move chmod
to chmodLocalFile
( #16306 )
...
* refactor(fs): Move `chmod` to `chmodLocalFile`
* More refactoring and tests
* Fix tests
* Apply suggestions from code review
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
* Fix prettier
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-06-29 06:03:49 +00:00
Sergei Zharinov
0687799b28
refactor(fs): Remove unused proxied functions ( #16311 )
...
* refactor(fs): Remove unused proxied functions
* Fix lint/test
* Fix
* Update lib/util/fs/index.spec.ts
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-06-29 05:44:30 +00:00
Michael Kriese
0a582d31c7
refactor: fix nullable types ( #16156 )
...
* refactor: fix nullable types
* chore: revert changes
* chore: fix lint comments
* chore: revert changes
2022-06-20 16:15:40 +00:00
Michael Kriese
5afed40ba3
fix(manager:nuget): use git to read current lockfile ( #15395 )
2022-05-20 04:40:54 +00:00
Michael Kriese
9f53724d90
feat(manager:npm): use local fs api ( #15294 )
2022-04-25 15:41:10 +02:00
Michael Kriese
64f5bd5f03
test: enforce lint style rules ( #15085 )
2022-04-12 14:49:49 +00:00
Rhys Arkins
6c9aad38a8
refactor: remove unnecessarily long paths in imports and mocks ( #14429 )
2022-02-26 16:09:01 +00:00
Michael Kriese
f5cc1de36f
fix(fs): missing path normalization ( #14414 )
2022-02-25 14:12:43 +01:00
Oleg Krivtsov
6604de3aeb
feat(manager/nuget): migrate fs.readFile to fs.readLocalFile ( #14234 )
...
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-02-25 11:07:31 +01:00
Oleg Krivtsov
25e62d54a4
feat(git-submodules): handle directory artifacts in postUpgradeTasks ( #13480 )
2022-01-25 16:29:39 +00:00
Maksim
dabe3d0e29
refactor: introduce Fixtures util class ( #12638 )
...
* refactor: introduce Fixtures util class
* refactor: align yarn.spec
* refactor: move fs mocks to __mocks__ folder
* refactor: improve fs-extra mock
* refactor: move callsite to dev deps
* refactor: use fixtures class
* refactor: use fixtures class
* refactor: reduce external variables in tests
* refactor: improve Fixtures
* refactor: add type for realFs
* refactor: remove obsolete snapshot
* fix: by comments
* refactor: provide ability to spy on mocked fs methods
* refactor: fix build
* refactor: fix by comments
* refactor: add docs
* refactor: fix unit test
* refactor: return called times checks
* refactor: fix by comments
* refactor: adjust unit test
* refactor: adjust unit test
* refactor: fix unit test
* refactor: fix by comments
* refactor: fix by comments
* refactor: update jsdoc
* refactor: fix by comments
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Jamie Magee <jamie.magee@gmail.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-01-23 21:23:54 +00:00
Michael Kriese
c5d50f6da3
refactor: more esm imports ( #13233 )
...
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2021-12-22 11:28:20 +00: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
Sergei Zharinov
879e59fa19
refactor(util/fs): Enable strict null checks ( #12904 )
2021-12-01 09:12:56 +00:00
Maksim
06d8c27043
refactor: global config ( #12743 )
...
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2021-11-23 21:10:45 +01:00
Oleg Krivtsov
29dde2f694
test: improve test readability with expect-more-jest ( #12329 )
2021-10-27 07:24:36 +02:00
Sergei Zharinov
5f4b9f9a3a
test: Fix test descriptions and enforce it via new linting rule ( #11285 )
2021-08-18 05:46:56 +00:00
Rhys Arkins
56830ee86c
refactor: admin->globalOnly
2021-08-17 07:57:45 +02:00
Rhys Arkins
9150854d75
chore: rename config/admin -> config/global
2021-08-17 07:57:45 +02:00
Rhys Arkins
bf69924b78
refactor: rename config admin functions to global
2021-08-17 07:57:45 +02:00
Rhys Arkins
0e91fda451
feat: centralized cache directory ( #10115 )
...
Ignore environment variables and instead use static cache directory for third party tools.
Closes #10094
BREAKING CHANGE: Renovate will now override any package manager cache locations configured in env variables.
# Conflicts:
# lib/manager/gomod/__snapshots__/artifacts.spec.ts.snap
# lib/manager/gomod/artifacts.ts
2021-08-17 07:57:45 +02:00
Sergei Zharinov
f4976c5d1d
refactor: Centralize logging for ensureCacheDir function ( #10603 )
2021-06-25 11:42:37 +00:00
Sergei Zharinov
11f89147ac
refactor: Use exec util instead of obtaining env directly ( #10584 )
2021-06-24 11:36:44 +02:00
Sebastian Poxhofer
eb8ad0c38e
feat(terraform): Implement terraform lock files ( #10469 )
2021-06-17 10:17:19 +00:00
Rhys Arkins
5b25bf5e0c
fix: revert terraform lock file handling ( #10466 )
...
* fix: Revert "fix(manager): optimize lockfile cache handling (#10463 )"
This reverts commit 713e35e88f
.
* fix: Revert "fix(terraform): use path joins instead of slashes (#10461 )"
This reverts commit 2776db6a2d
.
* fix: Revert "feat(terraform): update terraform lock files (#8429 )"
This reverts commit dab27f28c3
.
2021-06-16 17:45:39 +02:00
Sebastian Poxhofer
dab27f28c3
feat(terraform): update terraform lock files ( #8429 )
2021-06-16 08:02:34 +00:00
Rhys Arkins
a091a95383
fix(fs): only ensureDir non-empty string ( #10177 )
2021-05-26 15:10:30 +00:00
Rhys Arkins
79592f848a
fix: Revert "refactor: localDir -> cloneDir" ( #10166 )
...
This reverts commit 0b287c763d
.
2021-05-26 11:22:16 +00:00
Rhys Arkins
0b287c763d
refactor: localDir -> cloneDir ( #10158 )
2021-05-26 10:30:23 +02:00
Sergei Zharinov
fbbbce608e
chore: Configure fs local dirs via admin config ( #9990 )
...
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2021-05-17 13:21:28 +00:00
Sergei Zharinov
ce51f05cef
feat(test): Detect test utils callers and simplify helpers ( #9707 )
2021-04-26 16:15:03 +02:00
Sergei Zharinov
72d97ec2f4
refactor(workers): Enforce getName usage ( #9525 )
2021-04-13 10:25:51 +00:00
Rhys Arkins
460bfe95f0
refactor: fs.renameLocalFile
2021-03-20 21:54:03 +01:00
Michael Kriese
74d7691bef
refactor: optimize type usage ( #8947 )
2021-03-02 21:44:55 +01:00
Amos Wenger
52c70f0b2b
feat(rust): Find and update Cargo.lock for cargo workspaces ( #8338 )
2021-01-19 09:35:48 +01:00
Amos Wenger
b21e8a1909
feat(rust): Private crate registry support (rust/cargo) ( #8083 )
...
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2021-01-17 09:18:32 +01:00
Rhys Arkins
92c8f4d499
fix(composer): don’t add vendor directory ( #7937 )
...
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2020-12-10 13:47:46 +01:00
Sergio Zharinov
095f2f8240
refactor(util): Fix lint warnings ( #7114 )
2020-08-27 09:11:10 +02:00