Closed klawrawkz closed 1 year ago
My rudimentary understanding of the "expected behavior" is that choco selects the install package most appropriate for the system architecture. In my case though, choco is installing x86-based installs by default.
When a package is using the built-in helper functions (e.g. Install-ChocolateyPackage
, Install-ChocolateyZipPackage
) and both the 32 and 64 bit urls are passed to the helper, then yes, it should select x64 for 64-bit systems.
However, if a package only passes a single url to the helper, then that is the url that is going to be used.
By default, the azure-functions-core-tools
only passes the 32 bit url to Install-ChocolateyZipPackage
, instead of letting the helper determine what url to use.
https://community.chocolatey.org/packages/azure-functions-core-tools/4.0.5382#files
So for azure-functions-core-tools
you appear to be having an issue with a specific package, not with Chocolatey itself. The only people who can fix the behavior are the maintainers of the package.
chocolatey does not respect the x64 architecture of my box and installs x86 packages.
Are there any other packages affected? If so, please list them with the specific install command you are using.
@TheCakeIsNaOH, My original perception was that this symptom was pervasive. After your helpful mention re: azure function only passing the 32 bit url that choco uses, I find that azure function is the only flakey install I captured in my notes. I think this is a non-issue that I'll close. If I chance upon another example of choco installing 32 bit, rather than 64, I'll rehydrate this.
Thanks for the explanation and help.
Checklist
What You Are Seeing?
Brief description of your issue
Choco installs x86 versions on my
System Type: x64-based
Win 11 Pro (insider) PC.My rudimentary understanding of the "expected behavior" is that choco selects the install package most appropriate for the system architecture. In my case though, choco is installing x86-based installs by default.
For example, note that winget correctly installs the x64-based package for Azure Functions Core Tools.
By way of contrast, note that choco installs the x86 version of Azure Functions Core Tools.
What am I missing here?
System Information
Steps to reproduce
Install via chocolatey cli e.g.:
choco install package-what-evs
.Expected behavior
I expect chocolatey to respect the x64 architecture of my box and install x64 packages by default.
Actual behavior
chocolatey does not respect the x64 architecture of my box and installs x86 packages.
Environment
What is Expected?
How Did You Get This To Happen?
System Information
Installed Packages
Output Log
Additional Context
nope.