Describe the bug
When calling from a powershell 7 terminal
D:\Somaris\bin\k2s\1.8.1\k2s.exe addons import ingress traefik -f D:\K2SPackages\K2s-addon-ingress-traefik.oci.tar
I get:
⏳ [09:02:26] Extracting artifact from D:\K2SPackages\K2s-addon-ingress-traefik.oci.tar
⏳ [09:02:26] ---
⏳ [09:02:27] Free space 631.63 GB, size of artifact file: 0.16 GB
⏳ [09:02:27] Detected OCI artifact format
⏳ [09:02:27] Processing OCI artifact structure
⏳ [09:02:27] OCI Layout version: 1.0.0
⏳ [09:02:27] Warning: Could not read addon annotations from manifest blob sha256:06b4dd6891f0a506a94908fd66774ddc5d4a5383a958e701d2510c094e7b4917: The term 'Get-FileHash' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
⏳ [09:02:27] Recognized addon implementation: 'ingress traefik'
⏳ [09:02:27] Importing addon: ingress
⏳ Write-ErrorMessage : [09:02:27][ERROR] Get-FileHash : The term 'Get-FileHash' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling
⏳ of the name, or if a path was included, verify that the path is correct and try again. At D:\Somaris\bin\k2s\1.8.1\addons\oci.module.psm1:188 char:26 + $computedHash =
⏳ (Get-FileHash -Path $blobPath -Algorithm SHA2 ... + ~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (Get-FileHash:String) [],
⏳ CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
⏳ At D:\Somaris\bin\k2s\1.8.1\lib\modules\k2s\k2s.infra.module\log\log.module.psm1:293 char:21
⏳ + ... Write-ErrorMessage -Message $message -ConsoleMessage $con ...
⏳ + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
⏳ + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
⏳ + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Write-ErrorMessage
⏳
⏳ Blob integrity check failed for digest: sha256:06b4dd6891f0a506a94908fd66774ddc5d4a5383a958e701d2510c094e7b4917 (computed: sha256:)
⏳ At D:\Somaris\bin\k2s\1.8.1\addons\oci.module.psm1:190 char:13
⏳ + throw "Blob integrity check failed for digest: $Digest (c ...
⏳ + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
⏳ + CategoryInfo : OperationStopped: (Blob integrity ...puted: sha256:):String) [], RuntimeException
⏳ + FullyQualifiedErrorId : Blob integrity check failed for digest: sha256:06b4dd6891f0a506a94908fd66774ddc5d4a5383a958e701d2510c094e7b4917 (computed: sha256:)
⏳
ERROR command failed: exit status 1
To Reproduce
Install powershell 7 and call the import command from this terminal.
Expected behavior
The command should work also when called from powershell 7.
Please note that the import command works when called from simple command prompt or when called from powershell 5.
Additional context
Add any other context about the problem here.
Describe the bug
When calling from a powershell 7 terminal
I get:
To Reproduce
Install powershell 7 and call the import command from this terminal.
Expected behavior
The command should work also when called from powershell 7.
Please note that the import command works when called from simple command prompt or when called from powershell 5.
Additional context
Add any other context about the problem here.