Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Stucco\0.5.0\template\.github folder doesn't exist error #44

@j0hnnyrico

Description

@j0hnnyrico

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

  1. Powershell - Run As Administrator
  2. Find-module Stucco | Install-Module -Scope Allusers
  3. New-StuccoModule
  4. Follow the prompts
  5. 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.
  6. Check C:\Program Files\PowerShell\Modules\Stucco\0.5.0\template\ . ".github" folder doesn't exist.
  7. Check the files for Stucco module on PsGallery doesn't contain ".github" folder
  8. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions