intuit / auto

Generate releases based on semantic version labels on pull requests.
https://intuit.github.io/auto/
MIT License
2.28k stars 205 forks source link

`auto version` and `auto info` fail on node@20.11 #2439

Open arminrosu opened 9 months ago

arminrosu commented 9 months ago

Describe the bug

These commands exit with code 1:

VERSION=$(npx auto version)

# Also fails, equivalent to above
npx auto version | read VERSION

# 
npx auto info
(node:21308) [DEP0170] DeprecationWarning: The URL http://git@github.com:our-organization/repository.git is invalid. Future versions of Node.js will throw an error.
(Use `node --trace-deprecation ...` to show where the warning was created)

Environment Information:
# ...

To Reproduce

nvm install 20.11.1
npx auto info

Expected behavior

Should exit with code 0, warning should not be displayed as the URL is valid. url.parse may think it is a port.

Screenshots

Environment information:

"auto" version: v11.1.1 - Also happens in 11.0.4
"git"  version: v2.41.0
"node" version: v20.11.0 - Also happens on 20.11.1

Additional context