-
Notifications
You must be signed in to change notification settings - Fork 904
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
Wrong error message shown when using Get-ChocolateyWebFile and forcex86 #1859
Comments
Depends on the surrounding code, I'd have to have a thorough look, I suppose. Though, just that one line is a bit problematic. That should really be |
Yes, you are right. At second glance, I see that on a 64 bit system
I'll check again what is going on... |
OK, the error seems to be expected. Event though my system is 64 bit, AU has set
|
At the end of your update.ps1 file, you should have something like: |
Yes, I figured that out now and all works. The only issue I see is the misleading error message when |
@easybe I am glad to hear that you got this working. Based on what I am seeing here, I feel that this is a modification/feature request for AU itself, and not for Chocolatey. Is that correct? If so, can I request that you create an issue here: https://github.com/majkinetor/au and we can close out this issue. |
For 64-bit-only packages, when running Get-ChocolateyWebFile.ps1 on a 64-bit system having `$Env:ChocolateyForceX86 = $true`, the error message would read: "This package does not support 64 bit architecture." Instead, we should inform that the package does not support 32-bit systems.
For 64-bit-only packages, when running Get-ChocolateyWebFile.ps1 on a 64-bit system having `$Env:ChocolateyForceX86 = $true`, the error message would read: "This package does not support 64 bit architecture." Instead, we should inform that the package does not support 32-bit systems.
No, the error is in this repo. I've created a PR: #1867 |
I see it, it's a bug. The PR looks good, so this is going to go into 0.10.16. |
For 64-bit-only packages, when running Get-ChocolateyWebFile.ps1 on a 64-bit system having `$Env:ChocolateyForceX86 = $true`, the error message would read: "This package does not support 64 bit architecture." Instead, we should inform that the package does not support 32-bit systems.
* pr1867: (GH-1859) Fix error message for missing 32-bit URL
* stable: (chocolateyGH-1859) Fix error message for missing 32-bit URL
For 64-bit-only packages, when running Get-ChocolateyWebFile.ps1 on a 64-bit system having `$Env:ChocolateyForceX86 = $true`, the error message would read: "This package does not support 64 bit architecture." Instead, we should inform that the package does not support 32-bit systems.
* stable: (GH-1859) Fix error message for missing 32-bit URL
* upstream/master: (21 commits) (doc) Changed cla links from clahub to cla-assistant (chocolateyGH-2055) remove logs/config folder in nupkg (version) 0.10.16-beta (chocolateyGH-2023) Install git in the docker container (chocolateyGH-1859) Fix error message for missing 32-bit URL (chocolateyGH-1859) Fix error message for missing 32-bit URL (chocolateyGH-2051) Fix: workingDirectory always replaced w/cacheLocation (chocolateyGH-1983) exit-on-reboot-detected environment variable (maint) update resharper settings (maint) formatting (chocolateyGH-1843) Fix: search exact all versions returns 1 (chocolateyGH-1020) fix build (chocolateyGH-1020) Direct platform only for windows tests (chocolateyGH-1020) WindowsOnly tests by platform, not ignore (chocolateyGH-1020) Docker add ChocolateyInstall Env Var (chocolateyGH-1020) Docker use code_drop instead of build_output (doc) Update mono installation instructions in README (chocolateyGH-1020) Dockerfile and Travis to Mono 5.20.1 (chocolateyGH-1020) Add mono-4.5 configuration Add missing start of comment block ...
* master: (#2205) Remove mention of private repository (#2205) Update remaining URLs to new location (maint) Remove unnecessary whitespace (#2231) Change default repository URL (maint) Remove unnecessary whitespace (#2205) Update all chocolatey.org/docs URLs (maint) Remove unnecessary whitespace (#2205) Update automatic-packages docs links (doc) Changed cla links from clahub to cla-assistant (GH-2023) Install git in the docker container (GH-1859) Fix error message for missing 32-bit URL Add missing start of comment block (build) Change to start building next version of Chocolatey (doc) Add security.md file Update README.md (doc) .NET Framework 3.5 Feature Required for windows builds (doc) Fix typo (doc) Fix invalid url (doc) Fix typo and language in Contributing guidelines
Hi,
I am trying to package a 64 bit only program using AU. Therefore, as described in the documentation, omitting
url
(and related fields) in$packageArgs
used inInstall-ChocolateyZipPackage @packageArgs
. When runningupdate.ps1
I get:Looking at
choco/src/chocolatey.resources/helpers/functions/Get-ChocolateyWebFile.ps1
Line 264 in c57829c
it does not seem to me that this is only executed on 32 bit systems, even though the comment reads:
Or, am I missing something here?
I'll be happy to provide more information if I am really on to something here. Otherwise, I apologize for wasting your time in advance.
Cheers,
Ezra.
The text was updated successfully, but these errors were encountered: