Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DEP0170] DeprecationWarning: The URL ssh://[email protected]:XXXX/YYYYY.git is invalid. #9097

Open
earonesty opened this issue Sep 10, 2024 · 0 comments

Comments

@earonesty
Copy link

earonesty commented Sep 10, 2024

Node changed their Url.parse command.

https://nodejs.org/api/deprecations.html#DEP0170

(node:56977) [DEP0170] DeprecationWarning: The URL ssh://[email protected]:XXXXXX/YYYYY.git is invalid. Future versions of Node.js will throw an error.
    at getHostname (node:url:516:17)
    at Url.parse (node:url:384:14)
    at urlParse (node:url:141:13)
    at GitResolver.<anonymous> (/home/erik/.nvm/versions/node/v20.11.1/lib/node_modules/yarn/lib/cli.js:37285:19)
    at Generator.next (<anonymous>)
    at step (/home/erik/.nvm/versions/node/v20.11.1/lib/node_modules/yarn/lib/cli.js:310:30)
    at /home/erik/.nvm/versions/node/v20.11.1/lib/node_modules/yarn/lib/cli.js:328:14
    at new Promise (<anonymous>)
    at new F (/home/erik/.nvm/versions/node/v20.11.1/lib/node_modules/yarn/lib/cli.js:5539:28)
    at GitResolver.<anonymous> (/home/erik/.nvm/versions/node/v20.11.1/lib/node_modules/yarn/lib/cli.js:307:12)

To fix this issue, npm changed their resolver not to use Url.parse: npm/npm-package-arg#141. Yarn 1 could do the same.

In future versions of node, yarn 1 will cease working for git urls of this kind - unless an alternate parser is used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant