-
Notifications
You must be signed in to change notification settings - Fork 137
Cannot build PowerShell module with nested folders/files #584
Comments
Thanks for opening this issue... @avishnyakov have you had this issue with other versions of dotnet? |
Yes, 3.1 and 2.2 at least. I am containerizing build just right now so I can try different combinations of PowerShellGet and dotnet. I should be able to find the right combination of these. My module used to be going alright with AppVeyor long time ago, like a year (the uplift-powershell module) but not anymore. Will share more context and updates today. |
Trying different containers, dotnet and package versions. Now getting even more confused. Using container azuresdk/azure-powershell-core was probably not the best idea. Failing while trying to package nuget. Old packages, old nuget.
Using mcr.microsoft.com/powershell:latest container with dotnet-sdk-3.1, dotnet-sdk-2.1 and dotnet-sdk-2.2 gives another error related to dates. New packages and nuget 3.0+
and the failure is
|
I am getting more and more confused. From what I see, packaging is now failing due to newest versions of nuget/dotnet and deterministic changes which lock dates of the files or something. Based on the following discussion, several ideas to fix this:
Trying other combinations of dotnet/nuget/packages and containers. |
Ha! Same-same issue by @bo67192 |
Bingo. Found working combination of dotnet and nuget. @bo67192, FYI dotnet-sdk-2.0.2 works well.
I would suggest to get a docker container to build powershell modules and pin version to ensure stabilkty. Something like this will do:
Moreover, I would suggest to improve CI/CD and testing before releasing PowerShellGet. Saw CI runs different builds for various configs. Maybe docker-izing or at least running docker-ized builds against different dotnet version will add some value from the regression testing perspective? |
@SydneyhSmith, up. |
@avishnyakov thanks for the extensive testing and suggestions! I highly agree with the suggestion to move onto docker containers. |
Steps to reproduce
Expected behavior
Can build and publish module
Actual behavior
Cannot build neither publish module
Environment data
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.
The text was updated successfully, but these errors were encountered: