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 ?
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 ?