-
Notifications
You must be signed in to change notification settings - Fork 48
Added registryAuths copy to WithoutRegistries() + test cases #816
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
Added registryAuths copy to WithoutRegistries() + test cases #816
Conversation
@cuixq I fixed the lint issues and ran golangci-lint manually. There's a conflict with the rules for the trailing whitespace. If I remove that trailing whitespace, then golangci-lint complains about it not being formatted with gofmt. If I format with gofmt, then golangci-lint complains that there's trailing whitespace. |
hmmm weird - usually the linter is happy with what is formatted by |
@cuixq Figured it out. It was the line above the last one that was trailing. 🤦 |
@cuixq Fixed the unsafe usage as suggested. Could you please review? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM thanks! (I was OOO - sorry for the delay.)
@cuixq Thanks so much for the help!! |
Fixes #815
There is a bug where when the Maven Client is being reset to remove custom registries that were added from processing the pom.xml. The authentication configuration that was added when the client was first created with
NewMavenRegistryAPIClient
was forgotten to be copied in theWithoutRegistries
function.Also added test case for regression testing and also validate functionality before and after changes.