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 .devcontainer template in v0.5.0 #35

Open
jimbrig opened this issue Oct 2, 2022 · 6 comments
Open

Bug: Missing .devcontainer template in v0.5.0 #35

jimbrig opened this issue Oct 2, 2022 · 6 comments

Comments

@jimbrig
Copy link

jimbrig commented Oct 2, 2022

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

@jimbrig
Copy link
Author

jimbrig commented Oct 2, 2022

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

@jimbrig
Copy link
Author

jimbrig commented Oct 31, 2022

@devblackops any updates for this?

@HeyItsGilbert
Copy link
Contributor

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.

@andysq62
Copy link

andysq62 commented Mar 4, 2023

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

jimbrig added a commit to jimbrig/PSStucco that referenced this issue Mar 26, 2023
@MikeShepard
Copy link

.vscode folder missing from psgallery pacakage too.

@dlathrop
Copy link

I installed Stucco 0.5.0 from PS Gallery via Install-Module and had the same thing happen, but it was the template.github missing that caused the error.

I was able to pull the project down from GitHub and build it, then looked at the Output\Stucco\0.5.0\template folder. It seems none of the folders starting with a period were in the version from PS Gallery. Copying them from my built version fixed the module for me.

Maybe PS Gallery doesn't like "hidden dot" folders?
Alternatively, there may be an issue with copying those folders in your build/release pipeline for PS Gallery, but not in the normal build process.

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

5 participants