RamblingCookieMonster / PSDepend

PowerShell Dependency Handler
MIT License
285 stars 76 forks source link

PSGalleryModule should not force Repository #55

Open gaelcolas opened 6 years ago

gaelcolas commented 6 years ago

Currently the PSGalleryModule script sets a default of PSGallery to the Variable repository, which means you have to always specify from which Repository the modules needs to be installed/downloaded from, instead of relying on the configured repositories.

That is a pain when you have to change the repository based on which environment you're building from.

Would you consider to change it to [allowNull()] and handle the case when you want the find-module command to rely on the Repositories set ?

RamblingCookieMonster commented 6 years ago

I think so! Presumably this is the default anyhow, so it shouldn't add overhead for anyone, just allow a little more flexibility?