-
Notifications
You must be signed in to change notification settings - Fork 9
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
Fix10 - RegexBasedInterpolatorTest fails when building with maven 3.4.0-SNAPSHOT #11
Conversation
ReflectionValueExtractor version with capacity to parse expressions with arrays, lists and maps.
…t. The reason is that I've made a mistake and created a unique PR to solve several issues, which is a bad practice.
…ng with maven 3.4.0-SNAPSHOT Tests fails because the $HOME env var is no longer defined inside mvn.cmd and is not found (some tests pass even if the env var is not found!). - Changed the OperatingSystemUtils to allow mocking the Map of env vars. - Fixed tests to use mocking whenever the env vars are not the focus of the unit test. - When testing with a REAL env var, it is chosen to be $JAVA_HOME since it is required to be present to run mvn script. - Added tests to EnvarBasedValueSource and fixed.EnvarBasedValueSource.
Please rebase your branch first and then apply your chnges within a single commit. |
…ng with maven 3.4.0-SNAPSHOT Tests fails because the $HOME env var is no longer defined inside mvn.cmd and is not found (some tests pass even if the env var is not found!). - Changed the OperatingSystemUtils to allow mocking the Map of env vars. - Fixed tests to use mocking whenever the env vars are not the focus of the unit test. - When testing with a REAL env var, it is chosen to be $JAVA_HOME since it is required to be present to run mvn script. - Added tests to EnvarBasedValueSource and fixed.EnvarBasedValueSource.
Rebased. |
Can you again resolve the merge issue? I'll test and merge. |
# Conflicts: # src/test/java/org/codehaus/plexus/interpolation/fixed/FixedStringSearchInterpolatorTest.java
Merged. |
You have now eight commits. I wanted a single commit applyable to master. |
I can't update the PR with the squashed commit. Any ideas how to solve it? |
Create a patch from your change, reset your branch to origin/master, apply patch, resolve issues. |
Sorry can't make it work.... |
…lation into Fix10 # Conflicts: # src/test/java/org/codehaus/plexus/interpolation/EnvarBasedValueSourceTest.java # src/test/java/org/codehaus/plexus/interpolation/fixed/EnvarBasedValueSourceTest.java
well the github merge button offer an option to squash and merge so @michael-o can do it while merging. |
@olamy This won't help. If you rebase this branch there are a lot of merge conflicts. It is easier to rework the patch on top of master rather than reconcile this. |
@michael-o conflicts? AFAICS github UI doesn't show any conflicts? Do I miss something? |
I checked the "Allow edits from maintainers." option...don't know if it does something useful. |
|
no problem here (see the branch called merge-pr-11 )
|
@olamy Checked the branch. It now contains 4 ugly merge commits. Barely impossible to read the changes introduced. |
well maybe @belingueres had some issues while rebasing. |
Thanks you guys for your help. I think the problem was the squashing...I must be doing something wrong. Maybe you could squash the last changes into one commit in the merge-pr-11 branch and post the sequence of commands to illustrate how to do it right? |
I tried that locally with rebase. It produces non-mergable commits which must be resolved locally. |
Ok so as said previously local merge works for me and github ui doesn't mention any conflict. |
@olamy Can you squash the branch into one commit and push? |
Hi,
I've prepared this PR to solve the issue. I just used $JAVA_HOME when testing with a real env var. Used mocks on the env var Map whenever is not the focus of the test.
Gabriel