cli icon indicating copy to clipboard operation
cli copied to clipboard

[BUG] [DEP0170] DeprecationWarning for git+ssh:// dependencies#tag

Open DeepzUa opened this issue 1 year ago • 2 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

This issue exists in the latest npm version

  • [X] I am using the latest npm

Current Behavior

DEP0170 is active

I seen issue #6869, but instead of commit hash, i use #tag

{
  "dependencies": {
    "something-private": "git+ssh://[email protected]:group/project.git#tag"
  }
}

Environment

  • npm: 10.5.0
  • Node.js: 20.12.0
  • OS Name: Windows 10
  • System Model Name:

DeepzUa avatar Mar 27 '24 12:03 DeepzUa

the same error~~ npm: 10.5.0 Node.js: 20.12.1 OS Name: MacOS 12.6

lzsheng avatar Apr 11 '24 02:04 lzsheng

Same error for me as well.

gokulb9993 avatar Apr 12 '24 06:04 gokulb9993

Same error here: npm: 10.5.0 Node.js: 20.12.2

kyleclough avatar May 06 '24 18:05 kyleclough

Where are you seeing this? What command are you running?

I can not reproduce this

~/D/n/s/triage $ npm i

added 1 package, and audited 2 packages in 2s

found 0 vulnerabilities
~/D/n/s/triage $ npm pkg get dependencies
{
  "@gar/promisify": "git+ssh://[email protected]:wraithgar/gar-promisify.git#main"
}

wraithgar avatar May 10 '24 17:05 wraithgar

Tags make no difference either

~/D/n/s/triage $ npm i

added 1 package, and audited 2 packages in 2s

found 0 vulnerabilities
~/D/n/s/triage $ npm pkg get dependencies
{
  "@gar/promisify": "git+ssh://[email protected]:wraithgar/gar-promisify.git#v1.1.3"
}

wraithgar avatar May 10 '24 18:05 wraithgar

same here

Guihgo avatar Sep 01 '24 04:09 Guihgo

here's a trace...

(node:56977) [DEP0170] DeprecationWarning: The URL ssh://[email protected]:puzzlefin/sqcache-node.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)

this is a YARN issue, not an npm issue

earonesty avatar Sep 10 '24 15:09 earonesty

If someone has a reproducible case for this please open a new issue w/ steps on how to reproduce. Adding comments to this issue is not going to help.

wraithgar avatar Sep 10 '24 16:09 wraithgar