Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Missing GitLab CI/CD template #36

Open
SQLCanuck opened this issue Dec 8, 2022 · 3 comments
Open

Bug: Missing GitLab CI/CD template #36

SQLCanuck opened this issue Dec 8, 2022 · 3 comments

Comments

@SQLCanuck
Copy link

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

  • Module version used: v0.5.0
  • Operating System and PowerShell version: Windows 10 Enterprise 21H2 with PowerShell 5.1
@SQLCanuck SQLCanuck changed the title Missing GitLab CI/CD template Bug: Missing GitLab CI/CD template Dec 8, 2022
@ngetchell-pi
Copy link

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

Running with PowerShell 7.3.0

@ngetchell-pi
Copy link

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
Copy link

Korthal-Maiyn commented Jan 30, 2023

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.

jimbrig added a commit to jimbrig/PSStucco that referenced this issue Mar 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants