-
Notifications
You must be signed in to change notification settings - Fork 17
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
Support for WinRM 1.5+ #2
Conversation
Skipping the script upload should work even on older versions of WinRM unless an external process comes by and nukes the script. We never do any cleanup of the script once uploaded. |
True. I could have submitted two PRs, one to skip the upload and one to Jerry On Thu, Feb 25, 2016 at 5:41 PM, Shawn Neal notifications@github.com
Jerry Keselman |
@jerryk55 Cool, if you don't mind just include code changes. I'd rather not lock down the the dependencies unless there's a real reason too. Thanks! |
@sneal without a change to the gemspec we can't use this gem. Its got Jerry On Fri, Feb 26, 2016 at 10:23 AM, Shawn Neal notifications@github.com
Jerry Keselman |
349a443
to
04ba8bf
Compare
The script upload has been broken out into a separate PR here: #3. This change is required to allow winrm-elevated to work with winrm of at least version 1.5 and winrm-fs at least 0.2.0. We are not locking it down to those versions however. @sneal If you can consider this for inclusion I would appreciate it, otherwise we will need to make a copy of this repository with our own winrm-elevated in order to run our code using both winrm-elevated and the 1.5 winrm. Which is obviously sub-optimal. @mwrock maybe you could consider this as well. Thanks so much! |
There does not appear to be anything in this gem that requires winrm > 1.3 nor does that constraint prevent the latest version from being loaded. I think what @jerryk55 is getting at is that if you load this gem into a ruby environment that already has 1.3.x, it will not attempt to "upgrade" and that upgrade is desired in his scenario. Is that correct? Typically you dont want to bump the gemspec versions unless you are taking a dependency on new functionality or are broken by an older version. If you simply want the new features to be available to your users, I'd explicitly gem install the latest version. That should certainly work fine for winrm. However looking at the gem constraints, I'm not so sure about winrm-fs. Seems like 0.3.x will conflict. However looks like you are not concerned with 0.3. Even if we did decide this needed at least winrm 1.5, we'd want to make the constraint |
@mwrock Actually your suggested scenario was not what I was getting at, but that is because I misunderstood the gemspec file version operators. (I thought it went out to 3 digits even if you only specified 2). You are onto what my problem is when you start discussing winrm-fs. The "winrm ~> 1.3" line in the current file is fine. That allows us to use winrm of 1.5 and higher (I upgraded to 1.7.2 yesterday). The line that causes a problem is the "winrm-fs ~> 0.2.2" line. SO - to make a long story short - it looks like I have to either 1) PR winrm-elevated to allow winrm-fs ~0.2 (or ~0.3) instead of 0.2.2, OR 2) PR winrm-fs to allow winrm ~ 1.3 instead of 1.3.0. I will make either change - whichever you think is better - I think the correct thing is to change winrm-fs instead of winrm-elevated. |
The latter is not an option since the latest winrm-fs corrected this with a constraint on 1.5. So to prevent "gem hell", I'm gonna recommend patching this gem to use:
|
@mwrock ok thanks. I will modify this PR and resubmit. I appreciate your help. |
Allow winrm-elevated elevated runners to work alongside WinRM 1.5+ Executors and winrm-fs at least 0.3.0
04ba8bf
to
44930ef
Compare
Excellent, this LGTM |
Allow winrm-elevated elevated runners to work alongside WinRM 1.5+
Executors. This allows one to run requests that don't require
"elevation" in a single cmd process, while still running the elevated requests
as winrm-elevated initially designed. We get the speed advantage of WinRM 1.5
with the authentication advantage of winrm-elevated.