-
-
Notifications
You must be signed in to change notification settings - Fork 28
Description
Description
When running either New-StuccoModule or the variant with Plaster in poewrshell 7.4.6 or 5.1 the following error occurs:
Cannot find path 'C:\Program Files\PowerShell\Modules\Stucco\0.5.0\template.github' because it does not exist.
Steps to Reproduce
- Powershell - Run As Administrator
- Find-module Stucco | Install-Module -Scope Allusers
- New-StuccoModule
- Follow the prompts
- Error occurs: Get-ChildItem: C:\Program Files\PowerShell\Modules\Plaster\1.1.4\InvokePlaster.ps1:979
Line |
979 | … $files = @(Microsoft.PowerShell.Management\Get-ChildItem @gciParams) …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Cannot find path 'C:\Program Files\PowerShell\Modules\Stucco\0.5.0\template.github' because it does not exist. - Check C:\Program Files\PowerShell\Modules\Stucco\0.5.0\template\ . ".github" folder doesn't exist.
- Check the files for Stucco module on PsGallery doesn't contain ".github" folder
- Check the files for Stucco module on PsGallery doesn't contain ".vscode" folder
Current Behavior
Can't create a new module using Stucco - New-StuccoModule
Expected behavior
Using New-StuccoModule and following prompts a new powershell module/scaffold is created.
Possible Solution
Published stucco module on PSGallery should contain ".github" and ".vscode" folders.
Copied the two folders ".github" and ".vscode" into the path "C:\Program Files\PowerShell\Modules\Stucco\0.5.0\template" and New-StuccoModule works succesfully.
Screenshots
Environment
- Module version used: 0.5.0
- Operating System and PowerShell version:
Windows 11 - Powershell v5.1 and v.7.4.6
Windows 10 - Powershell v5.1 and v.7.4.6
Additional context
Can't create a Stucco module