devblackops/Stucco

Bug: Missing .devcontainer template in v0.5.0

jimbrig opened this issue · 6 comments

Description

When running the New-StuccoModule cmdlet under the latest version 0.5.0, if you select to Include VSCode dev container support during the wizard, you will receive an error because there is no longer a .devcontainer file in the module's templates/ directory:

image


In Version 0.5.0 of the module, you have removed various files in the module's templates/ directory. See below for a comparison of the installed module's contents comparing Version 0.4.0 and 0.5.0:

  • Version 0.4.0:

v0 4 0

  • Version 0.5.0:

v0 5 0


Steps to Reproduce

  1. Install and Import Version 0.5.0 of the Stucco Module: Install-Module Stucco > Import-Module Stucco.
  2. Run New-StuccoModule -DestinationPath .\MyModule
  3. During the wizard ensure you reply Y for the question: Do you want to include VSCode dev container support?
  4. Receive error Cannot find path <PSModulesDirectory>\Stucco\0.5.0\template\.devcontainer' because it does not exist.

Current Behavior

Receive error Cannot find path <PSModulesDirectory>\Stucco\0.5.0\template\.devcontainer' because it does not exist.

Expected behavior

Cleanly create new modules.

Possible Solution

Add back missing templates files/folders.

Screenshots

image

v0 4 0

v0 5 0

Environment

  • Module version used: 0.5.0
  • Operating System and PowerShell version:

image

Additional context

@devblackops and other devs note that this issue seems to only occur installing from PowerShell Gallery, not if you build the module yourself.

@devblackops any updates for this?

Seems to be the same for the .github folder. @devblackops maybe something funky happened during the build? Almost like something didn't follow the dot folders (which I see with bash/zsh all the time) during a copy.

I've run into this, too. Can one just copy the .github template from 0.4.0 as a workaround?

.vscode folder missing from psgallery pacakage too.