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

Rename repository to PSCloudFlare to be consistent with Module name casing #4

Open
leojonathanoh opened this issue Mar 7, 2019 · 0 comments

Comments

@leojonathanoh
Copy link

leojonathanoh commented Mar 7, 2019

Rename the repository to PSCloudFlare to be consistent with Module name casing.

This tripped me on *nix (where folders are case sensitive), when I did a git clone and used Import-Module:

PS > git clone https://github.com/zloeber/PSCloudflare
PS > Import-Module ./PSCloudflare
Import-module : The specified module './PSCloudflare' was not loaded because no valid module file was found in any module directory.
At line:1 char:7
+ $pwd; Import-module "./PSCloudflare"
+       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : ResourceUnavailable: (./PSCloudflare:String) [Import-Module], FileNotFoundException
+ FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand

PS > Import-Module ./PSCloudflare/PSCloudFlare.psm1 
# Okay

If the repository was consistent with the module's name casing, it would be:

PS > git clone https://github.com/zloeber/PSCloudFlare
PS > Import-Module ./PSCloudFlare
# Good

It's not a big deal, but hopefully people dont run into the same issues.

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

No branches or pull requests

1 participant