Commit fc76b9b
authored
ci: fix PowerShell .tar validation (#1505)
We saw that a .tar archive was corrupted with the warning "There are
data after the archive [sic]". This seems like something transient, but
validation didn't catch it.
`tar -t {path}` will not work as expected (at least on Windows); it's
needed to pass `f` to specify the file path. Otherwise tar falls back on
`\\.\tape0)`(!).
Regardless, when validating tar does not set a non-zero error code for
this kind of issue.
Instead, use `7z -t` which properly sets the error code and allows us to
bail out.1 parent fe1f372 commit fc76b9b
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
263 | | - | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
264 | 269 | | |
265 | 270 | | |
266 | 271 | | |
| |||
0 commit comments