Skip to content

Commit

Permalink
fix(manager:nuget): use upath for cross-platform paths (#15242)
Browse files Browse the repository at this point in the history
  • Loading branch information
viceice committed Apr 22, 2022
1 parent bca2534 commit 173ab07
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ module.exports = {

// disallow direct `nock` module usage as it causes memory issues.
// disallow `parse-link-header` to allow override ENV https://github.com/thlorenz/parse-link-header#environmental-variables
'no-restricted-imports': [2, { paths: ['nock', 'parse-link-header'] }],
'no-restricted-imports': [
2,
{ paths: ['nock', 'parse-link-header', 'path'] },
],

// Makes no sense to allow type inference for expression parameters, but require typing the response
'@typescript-eslint/explicit-function-return-type': [
Expand Down
2 changes: 1 addition & 1 deletion lib/modules/manager/nuget/artifacts.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { join } from 'path';
import { quote } from 'shlex';
import { join } from 'upath';
import { TEMPORARY_ERROR } from '../../../constants/error-messages';
import { logger } from '../../../logger';
import { exec } from '../../../util/exec';
Expand Down
2 changes: 1 addition & 1 deletion tools/clean-cache.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { tmpdir } from 'os';
import { join } from 'path';
import { remove } from 'fs-extra';
import { join } from 'upath';

// eslint-disable-next-line @typescript-eslint/no-floating-promises
(async () => {
Expand Down

0 comments on commit 173ab07

Please sign in to comment.