Skip to content

Properly work around Mac GCM issues when the system Java is 8 (or below)#154

Merged
nickgra merged 2 commits intomicrosoft:masterfrom
nickgra:java8Fix
Aug 14, 2018
Merged

Properly work around Mac GCM issues when the system Java is 8 (or below)#154
nickgra merged 2 commits intomicrosoft:masterfrom
nickgra:java8Fix

Conversation

@nickgra
Copy link
Member

@nickgra nickgra commented Aug 13, 2018

Our prep script that configures machines (dev machines and build agents) to run functional tests has a workaround for an issue with the Git Credential Manager (microsoft/Git-Credential-Manager-for-Mac-and-Linux#71).

This workaround only needs to be applied on machines who's default Java is 9 or 10 (which changed the format of 'java -version'). Applying the workaround to Java 8 installations will instead break the GCM on those machines.

See #155

@nickgra nickgra requested a review from sanoursa August 13, 2018 18:23
@@ -33,15 +33,13 @@ fi

Copy link
Contributor

Choose a reason for hiding this comment

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

Unrelated to the current changes, but line 10 above fails with a non-informative error if you run this script before you have built. Might want to just check that the package exists before trying to attach it.

Saeeds-MBP:src sanoursa$ Scripts/Mac/PrepFunctionalTests.sh 
hdiutil: attach failed - No such file or directory

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll clean that up while I'm here. Thanks!

@sanoursa
Copy link
Contributor

This script now works properly on my MacBook

@nickgra nickgra merged commit 7b5b425 into microsoft:master Aug 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants