-
Notifications
You must be signed in to change notification settings - Fork 22
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
Lowercased SourceLocation #11
Comments
|
Hi - this is just an internal thing to make it easier to compare strings. Although URLs aren't case sensitive, Puppet is so if the casing were different Puppet would think it needed to be changed. It should have no effect on actually interacting with repos. |
|
It does affect the interaction with repos, this code for example doesn't work with the lowercase: Since a call to "http://mylocalnexus/repository/PowerShellGallery_proxy/" returns 200, a call to "http://mylocalnexus/repository/powershellgallery_proxy/" returns 404 so the Set-PSRepository command returns malformed URL |
|
Ah ok, I didn't know that some servers treated the URL as case sensitive. I should be able to update this to remove the lower casing. |
|
I've got minimal modification in my current workspace, if you want I'll make a pull request :) |
|
2.0.0 makes source location case sensitive |
Hello,
is there a particular reason to have the SourceLocation lowercased?
In particular in these two situations:
puppet-powershellmodule/lib/puppet/type/psrepository.rb
Line 30 in a91a6d4
and
puppet-powershellmodule/lib/puppet/provider/psrepository/powershellcore.rb
Line 73 in a91a6d4
Since I think most of the webserver out there doesn't rewrite urls (e.g. Nexus Sonatype doesn't do it), I was wondering if removing these parameter alteration would be a thing.
The text was updated successfully, but these errors were encountered: