You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, originally this was only meant to just be basic support - but adding in custom repositories is all right.
Looking at the change it does require the ps_modules section in the package.json file to change 🤔 so the function will need to support the old and new (something like: if $Modules.$_name.version is null then assume original format and default to PSGallery)
Describe the Change
Setup;PS1 - add support for custom repositories that have already been registered using the 'Register-PSRepository' command
`function Install-PodeLocalModules
{
param (
[Parameter()]
$Modules = $null
)
Related Issues
https://badgerati.github.io/Pode/Getting-Started/LocalModules/ states that only the default PSGallery is supported, but custom repositories can easily be supported by adding the repository name to the 'ps_modules' file and to the setup.ps1 file
Additional Details
Modified ps_modules file content example:
{ "modules": { "eps": {"version": "0.5.0", "repository": "psgallery" } }, "devModules": { "pester": {"version": "latest", "repository": "psgallery" } } }
The text was updated successfully, but these errors were encountered: