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

[MWRAPPER-103] Apply recommended workaround #132

Merged
merged 3 commits into from
Apr 17, 2024
Merged

Conversation

cstamas
Copy link
Member

@cstamas cstamas commented Apr 17, 2024

As Marcono1234 on JIRA issue recommended, added workaround just before the use of Get-FileHash call.


https://issues.apache.org/jira/browse/MWRAPPER-103

@cstamas
Copy link
Member Author

cstamas commented Apr 17, 2024

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"^
Copy link
Contributor

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.

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member Author

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....

Copy link
Member

@slawekjaranowski slawekjaranowski left a 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

@cstamas cstamas merged commit 3418360 into master Apr 17, 2024
51 checks passed
@cstamas cstamas deleted the MWRAPPER-103-take2 branch April 17, 2024 18:20
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.

4 participants