chocolatey / Chocolatey.Cake.Recipe

A set of convention based Cake scripts for building Chocolatey projects
Apache License 2.0
5 stars 9 forks source link

Resigning multiple PowerShell scripts with the same name replaces existing scripts #155

Closed AdmiringWorm closed 4 months ago

AdmiringWorm commented 4 months ago

Checklist

What You Are Seeing?

When we are working on a project, and that project requires resigning of all the PowerShell scripts, if there are multiple PowerShell scripts that have the same name (like when there are multiple packages with an installation script), the functionality of copying the signed PowerShell script replaces any existing file with the same name, meaning only one of the expected files would be present.

This happens due to the same location being used for all of the scripts.

What is Expected?

Files that are different, but using the same name should not replace eachother. Optimally, we should preserve the directory structure from the root of the repository when copying files over.

We can then zip up the files created, to make it easier to update the files later.

How Did You Get This To Happen?

This was seen on an internal build where we resign files, no public reproduction steps are available.

System Details

Installed Packages

N/A

Output Log

N/A

Additional Context

No response

choco-bot commented 4 months ago

:tada: This issue has been resolved in version 0.28.4 :tada:

The release is available on:

Your GitReleaseManager bot :package: :rocket: