Skip to content

Chocolatey Business Internalizer cannot resolve $env:ChocolateyPackageVersion in v1.3.96 #482

Description

@izbub

Package: confluence-cli 1.3.96

During Chocolatey Business package internalization, the internalizer discovers:

https://github.com/open-cli-collective/atlassian-cli/releases/download/cfl-v$env:ChocolateyPackageVersion

instead of a resolved URL such as:

https://github.com/open-cli-collective/atlassian-cli/releases/download/cfl-v1.3.96

The package installs normally, but internalization fails with:

Chocolatey had an error formatting string:
Input string was not in a correct format.

followed by:

The remote file either doesn't exist, is unauthorized, or is forbidden

This appears to be related to the URL being constructed from:

$version = $env:ChocolateyPackageVersion
$baseUrl = "https://github.com/open-cli-collective/atlassian-cli/releases/download/cfl-v${version}"

I have already confirmed the following:

The package version is correctly set to 1.3.96.
The generated GitHub release URL exists.
The failure only occurs during Chocolatey Business internalization.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions