[Bug?]: Can't fetch Gitlab dependencies via SSH #6503
Labels
bug
Something isn't working
stale
Issues that didn't get attention
waiting for feedback
Will autoclose in a while unless more data are provided
Self-service
Describe the bug
Yarn (v2.4.3) is unable to fetch Gitlab repos via SSH because (I think) the namespaces cause URL parsing to fail.
After experimenting with different node versions (and not having much luck), I found the WHATWG standard (which Node has moved to) that clearly rejects a URL that resembles a Gitlab SSH URL:
The specific deprecation in question is here.
Example:
After the offending colons are replaced with slashes, it obviously can't fetch the packages but yarn doesn't complain.
To reproduce
yarn init
yarn install
TypeError: Invalid URL
error as above.Environment
System: OS: Linux 4.19 Debian GNU/Linux 10 (buster) 10 (buster) CPU: (4) x64 Intel(R) Xeon(R) Gold 6252 CPU @ 2.10GHz Binaries: Node: 19.2.0 - /tmp/xfs-c9fb61a5/node Yarn: 2.4.3 - /tmp/xfs-c9fb61a5/yarn npm: 8.19.3 - ~/.nvm/versions/node/v19.2.0/bin/npm
Additional context
No response
The text was updated successfully, but these errors were encountered: