Skip to content

[Bug] Test data should not be part of Scoop installation #5012

@xxthunder

Description

@xxthunder

Bug Report

Current Behavior

Initial installation with Scoop installer 'https://get.scoop.sh' does not work anymore behind our company's proxy.

Expected Behavior

Initial installation shall successfully install scoop.

Additional context/output

Scoop worked great and it still works. But on new machines without any existing Scoop installation the installer fails:

PS C:\D\scoop> Remove-Item * -Force -Recurse
PS C:\D\scoop> (New-Object System.Net.WebClient).DownloadFile('https://get.scoop.sh', 'c:\D\scoop\install.ps1')
PS C:\D\scoop> $VerbosePreference = "Continue"
PS C:\D\scoop> .\install.ps1 -ScoopDir 'C:\D\scoop'
VERBOSE: -------- PSBoundParameters --------
VERBOSE: [ScoopDir, C:\D\scoop]
VERBOSE: -------- Environment Variables --------
VERBOSE: $env:USERPROFILE: C:\Users\xxxxxxxx
VERBOSE: $env:ProgramData: C:\ProgramData
VERBOSE: $env:SCOOP:
VERBOSE: $env:SCOOP_CACHE:
VERBOSE: $env:SCOOP_GLOBAL:
VERBOSE: -------- Selected Variables --------
VERBOSE: SCOOP_DIR: C:\D\scoop
VERBOSE: SCOOP_CACHE_DIR: C:\D\scoop\cache
VERBOSE: SCOOP_GLOBAL_DIR: C:\ProgramData\scoop
VERBOSE: SCOOP_CONFIG_HOME: C:\Users\xxxxxxxx\.config
Initializing...
Downloading...
VERBOSE: Downloading https://github.com/ScoopInstaller/Scoop/archive/master.zip to C:\D\scoop\apps\scoop\current\scoop.zip
ParentContainsErrorRecordException: C:\D\scoop\install.ps1:493
Line |
 493 |      $downloader.downloadFile($SCOOP_PACKAGE_REPO, $scoopZipfile)
     |      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Exception calling "DownloadFile" with "2" argument(s): "The remote server returned an error: (403) Forbidden."

PS C:\D\scoop>

If I try to download that master.zip from GitHub in my browser I get this:
image

The root cause is that the malware scanner of our company fails to read the file. The scanner does not block the file, the reading of the file in order to check it fails. It used to work some weeks ago.

We could find out the problem: The problem is the file test/fixtures/decompress/TestCases.zip which is content of above master.zip.

The problem was introduced in that file with commit https://github.com/ScoopInstaller/Scoop/tree/b130e606cf983590ca172514d57f7daecb263558 .

The previous commit https://github.com/ScoopInstaller/Scoop/tree/c6fc2de30636ed9d022dd78ae8f8d22a16fa1a78 used to work.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions