You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
there are two places where the filename used to build the download url can be overwritten by mirror options and corrupt the resulting SHASUMS256.txt file. One is if the mirrorOptions.customFilename is set and the other is if any of the custom_filename env vars are set:
In either case, the default filename for the checksum passed as 'SHASUMS256.txt' gets chosen last after the custom filename and gets overwritten
Can reproduce by setting the mirror var for electron custom filename and trying to get the electron binary via downloadArtifact(). The checksum will error with Error: Could not parse checksum file at line 1: PK as the SHASUMS256.txt is invalid
The text was updated successfully, but these errors were encountered:
ghost
changed the title
bug: the SHASUMS256.txt download fails with CUSTOM_FILENAME env vars set
bug: the SHASUMS256.txt download is corrupted with CUSTOM_FILENAME env vars set
Jun 26, 2020
ghost
changed the title
bug: the SHASUMS256.txt download is corrupted with CUSTOM_FILENAME env vars set
bug: the SHASUMS256.txt download is corrupted with custom filename mirror options set
Jun 26, 2020
Hi, I believe this issue is still pending, although I think it could have a quick fix. I was forced to work around it by using custom directory structures only, and no custom filenames
When downloading from a mirror and specifying a custom filename, the SHASUMS256.txt is always invalid. When the checksum is downloaded in this case
get/src/index.ts
Lines 125 to 138 in 9034cc4
get/src/artifact-utils.ts
Line 61 in 9034cc4
get/src/artifact-utils.ts
Lines 27 to 43 in 9034cc4
Can reproduce by setting the mirror var for electron custom filename and trying to get the electron binary via
downloadArtifact()
. The checksum will error withError: Could not parse checksum file at line 1: PK
as the SHASUMS256.txt is invalidThe text was updated successfully, but these errors were encountered: