Skip to content

Commit 7e93d04

Browse files
committed
(#51) Update PSES to v3.18.0
1 parent 1e2b43b commit 7e93d04

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

build.gradle.kts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,17 @@ tasks {
122122
dest(destination)
123123

124124
doLast {
125+
println("Calculating hash for $dependencyName")
125126
val data = destination.asFile.readBytes()
126127
val hash = MessageDigest.getInstance("SHA-256").let { sha256 ->
127128
sha256.update(data)
128129
sha256.digest().joinToString("") { "%02x".format(it) }
129130
}
131+
println("Expected hash for $dependencyName = $expectedHash")
132+
println("Calculated hash for $dependencyName = $hash")
130133
if (!hash.equals(expectedHash, ignoreCase = true)) {
131134
destination.asFile.toPath().deleteExisting()
132-
error("$dependencyName hash check failed. Expected $expectedHash, but got $hash\n" +
135+
error("$dependencyName hash check failed.\n" +
133136
"The downloaded file has been deleted.\n" +
134137
"Please try running the task again, or update the expected hash in the gradle.properties file.")
135138
}
@@ -189,9 +192,9 @@ tasks {
189192
),
190193
downloads.file("PowerShellEditorServices.zip")
191194
) {
192-
include("PowerShellEditorServices/PowerShellEditorServices/**")
195+
include("PowerShellEditorServices/**")
193196
eachFile {
194-
relativePath = RelativePath(true, *relativePath.segments.drop(2).toTypedArray())
197+
relativePath = RelativePath(true, *relativePath.segments.drop(1).toTypedArray())
195198
}
196199
}
197200

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ maxUnpackedPluginBytes=20971520
66
psScriptAnalyzerVersion=1.21.0
77
psScriptAnalyzerSha256Hash=66353f139f4f1ffaa532fdeed965e70afbb8400b4810b6b2b91e091119aa6fad
88

9-
psesVersion=1.10.1
10-
psesSha256Hash=1c2ec9bbe40142df370497f72a8c33aafa8328462f204b4e1c5986ea7a59a40e
9+
psesVersion=3.18.0
10+
psesSha256Hash=b5624eeae84e4a23e1ef2b9516d29a9e0df02640470987a9f95757c05faee926

0 commit comments

Comments
 (0)