-
Notifications
You must be signed in to change notification settings - Fork 45
Import-Module from Gallery #71
Comments
I'll look into item 1. The version wasn't pushed into the Gallery for use, more so just to hold the name. I believe item 2 is as expected. I don't have version folders for modules with only one version installed. Once there are multiple versions, there are version folders. |
You're right for 1. Only the module has to be published on the gallery. Oddly I always have a version folder even if I install only one version of a module or the module as only one version available on the gallery... It make me think that we should think about an automated release pipeline that will not mess things up when releases on the gallery.... I'm currently working on that on another project (https://github.com/equelin/Unity-Powershell). I hope to be able to show something soon ! |
@equelin There's no option to choose which folders to publish into the gallery. My typical process is to import the module and then publish it, and that only brings in the module folder itself ... I dunno why the Publish-Module cmdlet decided to put more in there than required (most likely we need to double check the manifest). |
@chriswahl Instead of importing the module then publishing it you need to go to the Vester git repository on your computer and export the module's folder cd C:\Code\GitHub\Vester
Publish-Module -Name .\Vester -NuGetApiKey <apiKey> Let me kwnow if it helps. Sometimes it's hard for me to provide explanations in english... |
While setting up a build release pipeline on a personal repo, I found that you can do
Side note: I got really frustrated with the cmdlet help for the PowerShellGet commands while working on that. Not the easiest area to navigate. |
I've published Vester version 1.0.1 to the PowerShell Gallery. It seems to be working on my test workstation. Anyone else confirm so I can close this issue? |
Working here 👍 |
Upon inspecting my default install directory,
C:\Program Files\WindowsPowerShell\Modules\
, I noticed two things:C:\Program Files\WindowsPowerShell\Modules\Pester\3.4.3\{contents}
I have not yet published anything to the gallery, so I'm pretty helpless here.
The text was updated successfully, but these errors were encountered: