File tree 2 files changed +8
-5
lines changed 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -122,14 +122,17 @@ tasks {
122
122
dest(destination)
123
123
124
124
doLast {
125
+ println (" Calculating hash for $dependencyName " )
125
126
val data = destination.asFile.readBytes()
126
127
val hash = MessageDigest .getInstance(" SHA-256" ).let { sha256 ->
127
128
sha256.update(data)
128
129
sha256.digest().joinToString(" " ) { " %02x" .format(it) }
129
130
}
131
+ println (" Expected hash for $dependencyName = $expectedHash " )
132
+ println (" Calculated hash for $dependencyName = $hash " )
130
133
if (! hash.equals(expectedHash, ignoreCase = true )) {
131
134
destination.asFile.toPath().deleteExisting()
132
- error(" $dependencyName hash check failed. Expected $expectedHash , but got $hash \n " +
135
+ error(" $dependencyName hash check failed.\n " +
133
136
" The downloaded file has been deleted.\n " +
134
137
" Please try running the task again, or update the expected hash in the gradle.properties file." )
135
138
}
@@ -189,9 +192,9 @@ tasks {
189
192
),
190
193
downloads.file(" PowerShellEditorServices.zip" )
191
194
) {
192
- include(" PowerShellEditorServices/PowerShellEditorServices/ **" )
195
+ include(" PowerShellEditorServices/**" )
193
196
eachFile {
194
- relativePath = RelativePath (true , * relativePath.segments.drop(2 ).toTypedArray())
197
+ relativePath = RelativePath (true , * relativePath.segments.drop(1 ).toTypedArray())
195
198
}
196
199
}
197
200
Original file line number Diff line number Diff line change @@ -6,5 +6,5 @@ maxUnpackedPluginBytes=20971520
6
6
psScriptAnalyzerVersion =1.21.0
7
7
psScriptAnalyzerSha256Hash =66353f139f4f1ffaa532fdeed965e70afbb8400b4810b6b2b91e091119aa6fad
8
8
9
- psesVersion =1.10.1
10
- psesSha256Hash =1c2ec9bbe40142df370497f72a8c33aafa8328462f204b4e1c5986ea7a59a40e
9
+ psesVersion =3.18.0
10
+ psesSha256Hash =b5624eeae84e4a23e1ef2b9516d29a9e0df02640470987a9f95757c05faee926
You can’t perform that action at this time.
0 commit comments