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

Chocolatey remembers --forceX86 value with subsequent packages #1772

Closed
flcdrg opened this issue Mar 21, 2019 · 3 comments
Closed

Chocolatey remembers --forceX86 value with subsequent packages #1772

flcdrg opened this issue Mar 21, 2019 · 3 comments
Assignees
Milestone

Comments

@flcdrg
Copy link
Member

flcdrg commented Mar 21, 2019

What You Are Seeing?

Boxstarter calling Chocolatey where the first package specifies --x86 then causes all subsequent packages to be installed as though --x86 was specified

What is Expected?

Only install x86 packages when explicitly requested

How Did You Get This To Happen? (Steps to Reproduce)

This relates to chocolatey/boxstarter#240

Looking at prepare_powershell_environment, there's a bunch of environment variables that are nulled out at the start, but not chocolateyForceX86.

I'm thinking this should be nulled out as well

@ferventcoder
Copy link
Member

This is fixed for 0.10.14. There is a beta that will be available soon for testing.

@ferventcoder
Copy link
Member

Hi @flcdrg - totally missed your PR. 😢

@ferventcoder
Copy link
Member

This is pushed up as a beta. This one is for chocolatey.lib.

ferventcoder added a commit that referenced this issue Apr 1, 2019
Ensure that Force X86 is reset each time a package is called.
ferventcoder added a commit that referenced this issue Apr 1, 2019
Ensure that Download Cache Available environment variable is also
nulled out.
ferventcoder added a commit that referenced this issue Apr 1, 2019
* stable:
  (GH-1784) Turn off enhanced exit codes by default
  (version) 0.10.14-beta
  (GH-1772) Null out env var for Download Cache
  (GH-1772) Fix: choco remembers Forcex86
  (maint) formatting / order
@ferventcoder ferventcoder changed the title Chocolatey remembers --forceX86 value Chocolatey remembers --forceX86 value with subsequent packages May 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants