Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NET Framework check still triggers/fails when installing Chocolatey using chocolateyDownloadUrl #136

Open
5 tasks done
ch0nx opened this issue Aug 11, 2023 · 0 comments
Open
5 tasks done
Labels
0 - _Triaging Issue is accepted, but a milestone has yet to be added for the issue Bug Issues where something has happened which was not expected or intended Up For Grabs Issues that are available by the community to work on

Comments

@ch0nx
Copy link

ch0nx commented Aug 11, 2023

Checklist

  • I have verified this is the correct repository for opening this issue.
  • I have verified no other issues exist related to my problem.
  • I have verified this is not an issue for a specific package.
  • I have verified this issue is not security related.
  • I confirm I am using official, and not unofficial, or modified, Chocolatey products.

What You Are Seeing?

When using the 'chocolateyDownloadUrl' environment variable to target a specific chocolatey package (below 2.x in this case), the .NET framework check defined here still triggers since it isnt specifying an exact version.

However the bootstrap script from Chocolatey that is invoked by default will IGNORE the download url variable if the version is specified, so this check cannot be circumvented.

What is Expected?

Using the chocolateyDownloadUrl env variable should prevent the .NET check from triggering, since it implies a specific version is being targeted.

How Did You Get This To Happen?

  1. Install Chocolatey from a specific source using the following:
- name: Install chocolatey from source
      chocolatey.chocolatey.win_chocolatey:
        name: chocolatey
        state: present
      environment:
        chocolateyDownloadUrl: "https://myvery.specialfeed.int/chocolatey.1.3.1.nupkg"

System Details

  • Operating System: Ubuntu 22.04
  • Windows PowerShell version: 7.2.7
  • Chocolatey CLI Version: 1.3.1 targeted
  • Chocolatey Licensed Extension version: n/a
  • Chocolatey License type: n/a
  • Terminal/Emulator: n/a

Installed Packages

No additional packages are being installed since this is the actual Chocolatey installation

Output Log

fatal: [default]: FAILED! => {"changed": false, "command": "", "msg": "Chocolatey 2.0.0 requires .NET Framework 4.8 or higher to be installed. Please install .NET Framework 4.8 or higher and try again, or specify a 1.x version of Chocolatey to install.", "rc": 0}

Additional Context

No response

@ch0nx ch0nx added the Bug Issues where something has happened which was not expected or intended label Aug 11, 2023
@vexx32 vexx32 added Up For Grabs Issues that are available by the community to work on 0 - _Triaging Issue is accepted, but a milestone has yet to be added for the issue labels Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0 - _Triaging Issue is accepted, but a milestone has yet to be added for the issue Bug Issues where something has happened which was not expected or intended Up For Grabs Issues that are available by the community to work on
Projects
None yet
Development

No branches or pull requests

2 participants