Skip to content

[Bug] Function nightly_version not defined error when running scoop download #6385

@AkariiinMKII

Description

@AkariiinMKII

Bug Report

Current Behavior

When downloading nightly builds with scoop download, function nightly_version is reported to be undefined, for example

> scoop download rust-nightly
INFO  Downloading 'rust-nightly' [64bit] from versions bucket
nightly_version : The term 'nightly_version' is not recognized as the name of a cmdlet, function, script file, or opera
ble program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Users\A1\scoop\apps\scoop\current\libexec\scoop-download.ps1:91 char:20
+         $version = nightly_version
+                    ~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (nightly_version:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Starting download with aria2 ...
Download: Download Results:
Download: gid   |stat|avg speed  |path/URI
Download: ======+====+===========+=======================================================
Download: 1f66a2|OK  |    29MiB/s|C:/Users/A1/scoop/cache/rust-nightly#nightly#842e246.msi
Download: Status Legend:
Download: (OK):download completed.
'rust-nightly' (nightly) was downloaded successfully!

Expected Behavior

With scoop app in master branch it downloads package without error and successfully generate the version number

> scoop download rust-nightly
INFO  Downloading 'rust-nightly' [64bit] from versions bucket
WARN  This is a nightly version. Downloaded files won't be verified.
Starting download with aria2 ...
Download: Download Results:
Download: gid   |stat|avg speed  |path/URI
Download: ======+====+===========+=======================================================
Download: 8c74bd|OK  |    23MiB/s|C:/Users/A1/scoop/cache/rust-nightly#nightly-20250611#842e246.msi
Download: Status Legend:
Download: (OK):download completed.
'rust-nightly' (nightly-20250611) was downloaded successfully!

Additional context/output

The function nightly_version is defined in \lib\install.ps1 and removed from \libexec\scoop-download.ps1 by commit #79cf33d

Possible Solution

Just add it back :P

System details

Windows version: 11

OS architecture: 64bit

PowerShell version: 5.1.26100.4151

Additional software: [(optional) e.g. ConEmu, Git]

Scoop Configuration

{
    "aria2-enabled":  true,
    "aria2-max-connection-per-server":  16,
    "aria2-split":  16,
    "aria2-min-split-size":  "1M",
    "use_lessmsi":  true,
    "last_update":  "2025-06-11T20:16:09.6034216+08:00",
    "scoop_branch":  "develop",
    "scoop_repo":  "https://github.com/ScoopInstaller/Scoop",
    "debug":  false
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions