devblackops / Stucco

An opinionated Plaster template for high-quality PowerShell modules
MIT License
194 stars 28 forks source link

Bug: Missing GitLab CI/CD template #36

Open SQLCanuck opened 1 year ago

SQLCanuck commented 1 year ago

Description When using v0.5.0 I get the following error:

Get-Content : Cannot find path 'C:\Program Files\WindowsPowerShell\Modules\Stucco\0.5.0\template\cicd.gitlab-ci.yml' because it does not exist.

Steps to Reproduce

  1. Run the documented commands: $template = Get-PlasterTemplate -IncludeInstalledModules | Where-Object TemplatePath -Match 'Stucco' Invoke-Plaster -TemplatePath $template.TemplatePath

  2. During the selections pick GitLab for the CI/CD implementation.

Current Behavior Produces an error and stops further processing.

Expected behavior Implement the GitLab template in the module output directory.

Screenshots image

Environment

ngetchell-pi commented 1 year ago

I get a similar error from .vscode and .github files in the template.

Running with PowerShell 7.3.0

ngetchell-pi commented 1 year ago

The PowerShell Gallery shows that 0.5.0 is missing the files while 0.4.0 has them.

#### 0.5.0
Stucco.nuspec
[requirements.psd1](https://www.powershellgallery.com/packages/Stucco/0.5.0/Content/requirements.psd1)
[Stucco.psm1](https://www.powershellgallery.com/packages/Stucco/0.5.0/Content/Stucco.psm1)
[Stucco.psd1](https://www.powershellgallery.com/packages/Stucco/0.5.0/Content/Stucco.psd1)
template\_gitignore
template\CHANGELOG.md
[template\build.ps1](https://www.powershellgallery.com/packages/Stucco/0.5.0/Content/template%5Cbuild.ps1)
[Public\Get-StuccoTemplate.ps1](https://www.powershellgallery.com/packages/Stucco/0.5.0/Content/Public%5CGet-StuccoTemplate.ps1)
[template\license\MIT.txt](https://www.powershellgallery.com/packages/Stucco/0.5.0/Content/template%5Clicense%5CMIT.txt)
[template\tests\Help.tests.ps1](https://www.powershellgallery.com/packages/Stucco/0.5.0/Content/template%5Ctests%5CHelp.tests.ps1)
[template\tests\Meta.tests.ps1](https://www.powershellgallery.com/packages/Stucco/0.5.0/Content/template%5Ctests%5CMeta.tests.ps1)
template\cicd\jenkinsfile-multistage
template\cicd\jenkinsfile
[template\module\Private\GetHelloWorld.ps1](https://www.powershellgallery.com/packages/Stucco/0.5.0/Content/template%5Cmodule%5CPrivate%5CGetHelloWorld.ps1)
[plasterManifest.xml](https://www.powershellgallery.com/packages/Stucco/0.5.0/Content/plasterManifest.xml)
template\mkdocs.yml
template\_gitattributes
[template\psakeFile.ps1](https://www.powershellgallery.com/packages/Stucco/0.5.0/Content/template%5CpsakeFile.ps1)
[en-US\Stucco-help.xml](https://www.powershellgallery.com/packages/Stucco/0.5.0/Content/en-US%5CStucco-help.xml)
[template\module\Module_classes.psm1](https://www.powershellgallery.com/packages/Stucco/0.5.0/Content/template%5Cmodule%5CModule_classes.psm1)
[template\tests\ScriptAnalyzerSettings.psd1](https://www.powershellgallery.com/packages/Stucco/0.5.0/Content/template%5Ctests%5CScriptAnalyzerSettings.psd1)
[template\tests\MetaFixers.psm1](https://www.powershellgallery.com/packages/Stucco/0.5.0/Content/template%5Ctests%5CMetaFixers.psm1)
template\cicd\azure-pipelines.yml
[template\module\Classes\classA.ps1](https://www.powershellgallery.com/packages/Stucco/0.5.0/Content/template%5Cmodule%5CClasses%5CclassA.ps1)
template\docs\en-US\about_Module.help.md
template\CODE_OF_CONDUCT.md
[template\requirements.psd1](https://www.powershellgallery.com/packages/Stucco/0.5.0/Content/template%5Crequirements.psd1)
template\README.md
[Public\New-StuccoModule.ps1](https://www.powershellgallery.com/packages/Stucco/0.5.0/Content/Public%5CNew-StuccoModule.ps1)
[template\license\Apache.txt](https://www.powershellgallery.com/packages/Stucco/0.5.0/Content/template%5Clicense%5CApache.txt)
[template\module\Module.psm1](https://www.powershellgallery.com/packages/Stucco/0.5.0/Content/template%5Cmodule%5CModule.psm1)
[template\tests\Manifest.tests.ps1](https://www.powershellgallery.com/packages/Stucco/0.5.0/Content/template%5Ctests%5CManifest.tests.ps1)
template\cicd\github-actions.yml
template\cicd\appveyor.yml
[template\module\Public\Get-HelloWorld.ps1](https://www.powershellgallery.com/packages/Stucco/0.5.0/Content/template%5Cmodule%5CPublic%5CGet-HelloWorld.ps1)
[template\docs\en-US\about_Module.help.txt](https://www.powershellgallery.com/packages/Stucco/0.5.0/Content/template%5Cdocs%5Cen-US%5Cabout_Module.help.txt)
### 0.4.0
Stucco.nuspec
[plasterManifest.xml](https://www.powershellgallery.com/packages/Stucco/0.4.0/Content/plasterManifest.xml)
[requirements.psd1](https://www.powershellgallery.com/packages/Stucco/0.4.0/Content/requirements.psd1)
[Stucco.psd1](https://www.powershellgallery.com/packages/Stucco/0.4.0/Content/Stucco.psd1)
[Stucco.psm1](https://www.powershellgallery.com/packages/Stucco/0.4.0/Content/Stucco.psm1)
[en-US\Stucco-help.xml](https://www.powershellgallery.com/packages/Stucco/0.4.0/Content/en-US%5CStucco-help.xml)
[Public\Get-StuccoTemplate.ps1](https://www.powershellgallery.com/packages/Stucco/0.4.0/Content/Public%5CGet-StuccoTemplate.ps1)
[Public\New-StuccoModule.ps1](https://www.powershellgallery.com/packages/Stucco/0.4.0/Content/Public%5CNew-StuccoModule.ps1)
[template\build.ps1](https://www.powershellgallery.com/packages/Stucco/0.4.0/Content/template%5Cbuild.ps1)
template\CHANGELOG.md
template\CODE_OF_CONDUCT.md
template\mkdocs.yml
[template\psakeFile.ps1](https://www.powershellgallery.com/packages/Stucco/0.4.0/Content/template%5CpsakeFile.ps1)
template\README.md
[template\requirements.psd1](https://www.powershellgallery.com/packages/Stucco/0.4.0/Content/template%5Crequirements.psd1)
template\_gitattributes
template\_gitignore
[template\.devcontainer\devcontainer.json](https://www.powershellgallery.com/packages/Stucco/0.4.0/Content/template%5C.devcontainer%5Cdevcontainer.json)
template\.devcontainer\Dockerfile
template\.github\CONTRIBUTING.md
template\.github\ISSUE_TEMPLATE.md
template\.github\PULL_REQUEST_TEMPLATE.md
[template\.vscode\extensions.json](https://www.powershellgallery.com/packages/Stucco/0.4.0/Content/template%5C.vscode%5Cextensions.json)
[template\.vscode\settings.json](https://www.powershellgallery.com/packages/Stucco/0.4.0/Content/template%5C.vscode%5Csettings.json)
[template\.vscode\tasks.json](https://www.powershellgallery.com/packages/Stucco/0.4.0/Content/template%5C.vscode%5Ctasks.json)
template\cicd\.gitlab-ci.yml
template\cicd\appveyor.yml
template\cicd\azure-pipelines.yml
template\cicd\github-actions.yml
template\docs\en-US\about_Module.help.md
[template\docs\en-US\about_Module.help.txt](https://www.powershellgallery.com/packages/Stucco/0.4.0/Content/template%5Cdocs%5Cen-US%5Cabout_Module.help.txt)
[template\license\Apache.txt](https://www.powershellgallery.com/packages/Stucco/0.4.0/Content/template%5Clicense%5CApache.txt)
[template\license\MIT.txt](https://www.powershellgallery.com/packages/Stucco/0.4.0/Content/template%5Clicense%5CMIT.txt)
[template\module\Module.psm1](https://www.powershellgallery.com/packages/Stucco/0.4.0/Content/template%5Cmodule%5CModule.psm1)
[template\module\Module_classes.psm1](https://www.powershellgallery.com/packages/Stucco/0.4.0/Content/template%5Cmodule%5CModule_classes.psm1)
[template\module\Classes\classA.ps1](https://www.powershellgallery.com/packages/Stucco/0.4.0/Content/template%5Cmodule%5CClasses%5CclassA.ps1)
[template\module\Private\GetHelloWorld.ps1](https://www.powershellgallery.com/packages/Stucco/0.4.0/Content/template%5Cmodule%5CPrivate%5CGetHelloWorld.ps1)
[template\module\Public\Get-HelloWorld.ps1](https://www.powershellgallery.com/packages/Stucco/0.4.0/Content/template%5Cmodule%5CPublic%5CGet-HelloWorld.ps1)
[template\tests\Help.tests.ps1](https://www.powershellgallery.com/packages/Stucco/0.4.0/Content/template%5Ctests%5CHelp.tests.ps1)
[template\tests\Manifest.tests.ps1](https://www.powershellgallery.com/packages/Stucco/0.4.0/Content/template%5Ctests%5CManifest.tests.ps1)
[template\tests\Meta.tests.ps1](https://www.powershellgallery.com/packages/Stucco/0.4.0/Content/template%5Ctests%5CMeta.tests.ps1)
[template\tests\MetaFixers.psm1](https://www.powershellgallery.com/packages/Stucco/0.4.0/Content/template%5Ctests%5CMetaFixers.psm1)
[template\tests\ScriptAnalyzerSettings.psd1](https://www.powershellgallery.com/packages/Stucco/0.4.0/Content/template%5Ctests%5CScriptAnalyzerSettings.psd1)
template\tests\out\.gitkeep
Korthal-Maiyn commented 1 year ago

Identical issue as @ngetchell-pi

Creating an opinionated high-quality PowerShell module with psake tasks and GitHub meta documents
.
   Create KXC.Notion\KXC.Notion.psd1
   Create .gitignore
   Create .gitattributes
   Create build.ps1
   Create psakeFile.ps1
   Create requirements.psd1
   Create azure-pipelines.yml
Get-ChildItem: C:\Users\<user>\Documents\PowerShell\Modules\Plaster\1.1.3\InvokePlaster.ps1:968
Line |
 968 |  …  $files = @(Microsoft.PowerShell.Management\Get-ChildItem @gciParams) …
     |                
     | Cannot find path 'C:\Users\<user>\Documents\PowerShell\Modules\Stucco\0.5.0\template\.github' because it does not
     | exist.

PSVersion 7.3.1

Rolled back to v0.4.0 and no hassles, immediately through with a copy paste of the original inputs.