You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As the pickBy filters by nil, but the cliOptions return repositoryUrl as empty string on error, the repositoryUrl being correctly extrapolated from the package.json gets overwritten here.
The text was updated successfully, but these errors were encountered:
SheepFromHeaven
changed the title
Repository URL wrongly resolved
BREAKING: Repository URL wrongly resolved
Jan 14, 2021
SheepFromHeaven
changed the title
BREAKING: Repository URL wrongly resolved
Repository URL wrongly resolved
Jan 14, 2021
Current behavior
By passing no repositoryURL option and one malformed option to the cli and having a repository set in the package.json throws the error: ENOREPOURL.
Expected behavior
Wrongly set options passed to the cli and set repository url in the package json should throw a EWRONGOPTIONS error
Environment
semantic-release -tagFormat '${version}'
I traced the bug to the following code snippet:
https://github.com/semantic-release/semantic-release/blob/master/lib/get-config.js#L83
As the pickBy filters by nil, but the cliOptions return repositoryUrl as empty string on error, the repositoryUrl being correctly extrapolated from the package.json gets overwritten here.
The text was updated successfully, but these errors were encountered: