Commit graph

60 commits

Author SHA1 Message Date
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 () 2022-09-25 16:31:11 +02:00
Michael Kriese
10fd0f2827
fix(cache/repository): don't log error for non-existant files () 2022-08-26 12:25:35 +00:00
Michael Kriese
0316a5e62d
test: use jest v29 () 2022-08-16 14:22:29 +02:00
Yun Lai
f1bcafc584
feat(fs): add localPathIsSymbolicLink and readLocalSymlink ()
* 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 ()
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 () 2022-07-14 07:53:26 +00:00
Sergei Zharinov
e26130329d
refactor(fs): Add tests for every filesystem function ()
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 ()
* 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 ()
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 () 2022-06-29 07:57:44 +00:00
Sergei Zharinov
bfc393ef00
refactor(fs): Don't proxy writeFile function ()
* 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 ()
* 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 ()
* 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 ()
* 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 () 2022-05-20 04:40:54 +00:00
Michael Kriese
9f53724d90
feat(manager:npm): use local fs api () 2022-04-25 15:41:10 +02:00
Michael Kriese
64f5bd5f03
test: enforce lint style rules () 2022-04-12 14:49:49 +00:00
Rhys Arkins
6c9aad38a8
refactor: remove unnecessarily long paths in imports and mocks () 2022-02-26 16:09:01 +00:00
Michael Kriese
f5cc1de36f
fix(fs): missing path normalization () 2022-02-25 14:12:43 +01:00
Oleg Krivtsov
6604de3aeb
feat(manager/nuget): migrate fs.readFile to fs.readLocalFile ()
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 () 2022-01-25 16:29:39 +00:00
Maksim
dabe3d0e29
refactor: introduce Fixtures util class ()
* 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 ()
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2021-12-22 11:28:20 +00:00
Michael Kriese
2b24a98359
refactor: update imports for esm ()
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 () 2021-12-01 09:12:56 +00:00
Maksim
06d8c27043
refactor: global config ()
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 () 2021-10-27 07:24:36 +02:00
Sergei Zharinov
5f4b9f9a3a
test: Fix test descriptions and enforce it via new linting rule () 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 ()
Ignore environment variables and instead use static cache directory for third party tools.

Closes 

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 () 2021-06-25 11:42:37 +00:00
Sergei Zharinov
11f89147ac
refactor: Use exec util instead of obtaining env directly () 2021-06-24 11:36:44 +02:00
Sebastian Poxhofer
eb8ad0c38e
feat(terraform): Implement terraform lock files () 2021-06-17 10:17:19 +00:00
Rhys Arkins
5b25bf5e0c
fix: revert terraform lock file handling ()
* fix: Revert "fix(manager): optimize lockfile cache handling ()"

This reverts commit 713e35e88f.

* fix: Revert "fix(terraform): use path joins instead of slashes ()"

This reverts commit 2776db6a2d.

* fix: Revert "feat(terraform): update terraform lock files ()"

This reverts commit dab27f28c3.
2021-06-16 17:45:39 +02:00
Sebastian Poxhofer
dab27f28c3
feat(terraform): update terraform lock files () 2021-06-16 08:02:34 +00:00
Rhys Arkins
a091a95383
fix(fs): only ensureDir non-empty string () 2021-05-26 15:10:30 +00:00
Rhys Arkins
79592f848a
fix: Revert "refactor: localDir -> cloneDir" ()
This reverts commit 0b287c763d.
2021-05-26 11:22:16 +00:00
Rhys Arkins
0b287c763d
refactor: localDir -> cloneDir () 2021-05-26 10:30:23 +02:00
Sergei Zharinov
fbbbce608e
chore: Configure fs local dirs via admin config ()
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 () 2021-04-26 16:15:03 +02:00
Sergei Zharinov
72d97ec2f4
refactor(workers): Enforce getName usage () 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 () 2021-03-02 21:44:55 +01:00
Amos Wenger
52c70f0b2b
feat(rust): Find and update Cargo.lock for cargo workspaces () 2021-01-19 09:35:48 +01:00
Amos Wenger
b21e8a1909
feat(rust): Private crate registry support (rust/cargo) ()
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 ()
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 () 2020-08-27 09:11:10 +02:00