Skip to content
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

[MNG-6991] Restore how the local repository is determined #378

Conversation

mthmulders
Copy link
Contributor

The refactoring of MavenCli.populateRequest introduced a subtle bug. It would select ~/.m2/repository as the local repository instead of something that is configured in ~/.m2/settings.xml.

See MNG-6991 and this Slack discussion for additional details.

  • Make sure there is a JIRA issue filed for the change (usually before you start working on it).

  • Each commit in the pull request should have a meaningful subject line and body.

  • Format the pull request title like [MNG-XXX] - Fixes bug in ApproximateQuantiles, where you replace MNG-XXX with the appropriate JIRA issue. Best practice is to use the JIRA issue title in the pull request title and in the first line of the commit message.

  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.

  • Run mvn clean verify to make sure basic checks pass. A more thorough check will
    be performed on your pull request automatically.

  • You have run the Core IT successfully.

  • In any other case, please file an Apache Individual Contributor License Agreement.

The refactoring of MavenCli.populateRequest introduced
a subtle bug. It would select ~/.m2/repository as the
local repository instead of something that is configured
in ~/.m2/settings.xml.
@eolivelli
Copy link
Contributor

Shall we add a couple of tests that cover the change please?

@mthmulders
Copy link
Contributor Author

Shall we add a couple of tests that cover the change please?

You are right, @eolivelli. I focussed too much on writing an integration test (which is very hard if not impossible for this case) but a unit test turned out pretty easy.

Copy link
Contributor

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@MartinKanters MartinKanters left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants