Skip to content

powershell function for SHA256 generates error #14

@washuu

Description

@washuu
===> Searching for: SSH::LibSSH
===> Searching for missing dependencies: Concurrent::Progress
===> Searching for missing dependencies: Test::Scheduler
===> Building: SSH::LibSSH
At line:1 char:192
+ ... )) -replace \"-\",\"\" } get-sha256 C:\Users\rstanilewicz\.zef\store\p6-ssh-libs ...
+                    ~
You must provide a value expression on the right-hand side of the '-' operator.
At line:1 char:192
+ "function get-sha256 { param($file);[system.bitconverter]::tostring([System.Secu ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Unexpected token '\",\"\" } get-sha256 C:\Users\rstanilewicz\.zef\store\p6-ssh-libssh.git\926d72092eb9c9757f15f3095ecda
45553193bc9\resources\ssh.dll"' in expression or statement.
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : ExpectedValueExpression

Effective index out of range. Is: -1, should be in 0..^Inf
  in method build at C:\Users\rstanilewicz\.zef\store\p6-ssh-libssh.git\926d72092eb9c9757f15f3095ecda45553193bc9\Build.p
m line 22
  in block <unit> at -e line 1 

it is because over-escaped slashes in $HOME.zef\store\p6-ssh-libssh.git\926d72092eb9c9757f15f3095ecda45553193bc9\Build.pm. Please replace

 -replace \"-\",\"\" 

with

-replace "-",""

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions