Skip to content
This repository was archived by the owner on Jun 13, 2024. It is now read-only.
This repository was archived by the owner on Jun 13, 2024. It is now read-only.

Cannot build PowerShell module with nested folders/files #584

Open
@avishnyakov

Description

@avishnyakov

Steps to reproduce

git clone https://github.com/SubPointSolutions/uplift-powershell.git
cd uplift-powershell\invoke-uplift
pwsh -c invoke-build Clean, PrepareModule, VersionModule, BuildModule, InstallModule, ValidateInstalledModule

Expected behavior

Can build and publish module

Actual behavior

Cannot build neither publish module

Environment data

Name                           Value
----                           -----
PSVersion                      6.2.4
PSEdition                      Core
GitCommitId                    6.2.4
OS                             Microsoft Windows 10.0.18363
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0
> Get-Module -ListAvailable PowerShellGet,PackageManagement
ModuleType Version    Name                                PSEdition ExportedCommands
---------- -------    ----                                --------- ----------------
Script     1.4.6      PackageManagement                   Desk      {Find-Package, Get-Packa…

    Directory: C:\program files\powershell\6\Modules

ModuleType Version    Name                                PSEdition ExportedCommands
---------- -------    ----                                --------- ----------------
Script     1.3.2      PackageManagement                   Desk      {Find-Package, Get-Packa… Script     2.1.3      PowerShellGet
> Get-PackageProvider -ListAvailable
Name                     Version          DynamicOptions  
----                     -------          --------------  
NuGet                    3.0.0.1          Destination, Exc
PowerShellGet            2.1.3.0          PackageManagemen

Submitting this report as a continuation of https://github.com/PowerShell/PowerShellGet/issues/478
In particular, these comments:

It seems that dotnet pack is stuck while packing a .csproj project with 5+ files due to tons of warning produces by the dotnet pack. The dotnet.exe is stuck in the process explorer. Killing it unblocks the buil process producing errors and output mentioned in #478

This does not happen with a single-powershell file module, only with 5+ and more files, especially in subfodlers.

Same happens in linux container, unfortionatly.

Can get another repro but steps mentioned in this ticket should be enought.
Let me know what else I can help with.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions