-
Notifications
You must be signed in to change notification settings - Fork 47
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
[MWRAPPER-103] Apply recommended workaround #132
Conversation
Unsure is thie import module needed for other use of Get-FileHash as well? |
@@ -160,6 +160,7 @@ FOR /F "usebackq tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapp | |||
) | |||
IF NOT %WRAPPER_SHA_256_SUM%=="" ( | |||
powershell -Command "&{"^ | |||
"Import-Module $PSHOME\Modules\Microsoft.PowerShell.Utility -Function Get-FileHash"^ |
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.
I assume that a ;
is needed at the end of Get-FileHash.
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.
Hm, no idea, but Google found me this: https://poshcode.gitbook.io/powershell-practice-and-style/style-guide/code-layout-and-formatting#avoid-using-semicolons-as-line-terminators
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.
even if it is to avoid, will add to be consistent with existing PS code....
Import the thing just before trying to use it?
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.
I don't have a windows system .... so can not check
As Marcono1234 on JIRA issue recommended, added workaround just before the use of
Get-FileHash
call.https://issues.apache.org/jira/browse/MWRAPPER-103