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

(Modules-4508) Fixed error with version parameter #69

Conversation

derek-robinson
Copy link

Using one dash instead of two for a parameter causes chocolatey to think
the parameter is a bundled option (like -dvyf means --debug --verbose
--confirm --force).

Using one dash instead of two for a parameter causes chocolatey to think
the parameter is a bundled option (like -dvyf means --debug --verbose
--confirm --force).
@ferventcoder
Copy link

@Koshersalt there are a few more places this will need to be fixed.

Also, I started a branch to see if Chocolatey was 0.9.9+ and automatically use -- in places like that.

@ferventcoder
Copy link

Started being the keyword there...

@derek-robinson
Copy link
Author

Yeaaaah, I realized after the tests came back that it wasn't quite the quick fix I'd hoped lol.
So I'm assuming your 9.9+ branch would be the preferred route. If so should I go ahead and close this PR?

@ferventcoder
Copy link

@Koshersalt hold tight. I have to still find that branch ;)

@glennsarti
Copy link

@ferventcoder To summarise then...behaviour of --version and -versions is different between Choco 0.9.9 and above 0.9.9?

@jpogran
Copy link

jpogran commented Mar 24, 2017

Updated PR with modified spec tests, so now all specs pass. Will try to sync up with @ferventcoder to see if I can help identify the other areas he speaks of to change

@glennsarti
Copy link

Seems related to chocolatey-archive#149

@glennsarti
Copy link

@ferventcoder Looks like chocolatey/choco@51d59c8 has regressed

@glennsarti
Copy link

Confirmed that this was not an issue using Choco 0.9.9.12 but then started failing 0.9.10. This fix uses --version which is compatible with older Choco versions so changing it to double dash across the board is fine.

@glennsarti
Copy link

Running through Adhoc CI to make sure it's all ok

@glennsarti
Copy link

Adhoc is green. Merging

@glennsarti glennsarti merged commit 2be3e28 into puppetlabs:master Mar 24, 2017
@ferventcoder
Copy link

It's the diff btw 0.9.8.x and below and 0.9.9+

@ferventcoder
Copy link

Which the supported module probably will no longer support. It may be a good idea to double dash all long names.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants