Skip to content

(#1120) Fix gathering of files for signing#1121

Merged
gep13 merged 1 commit intochocolatey:hotfix/3.0.1from
gep13:issue-1120
Mar 25, 2026
Merged

(#1120) Fix gathering of files for signing#1121
gep13 merged 1 commit intochocolatey:hotfix/3.0.1from
gep13:issue-1120

Conversation

@gep13
Copy link
Copy Markdown
Member

@gep13 gep13 commented Mar 23, 2026

Description Of Changes

There are a number of files added to the net48 folder that need to be signed, but these are not being picked up since the globbing pattern doesn't look in this folder.

This commit updates the globbing pattern to include this folder, and also adds an assertion about the number of files that are expected to be found from each glob. This should prevent this from happening again, since the updating of the asserted version number should only be done, when the number of expected files has been known to change.

Motivation and Context

With the introduction of dotnet build, rather than msbuild, the new net48 folder is causing an issue with gathering of files that need to be signed using the Chocolatey authenticode certificate.

Testing

@corbob has updated the Test-Kitchen tests to correctly identify all files that need to be checked.

Once this PR is merged, we should run the Test-Kitchen test, which is currently failing and ensure that it passes correctly

Operating Systems Testing

Dev VM 4

Change Types Made

  • Bug fix (non-breaking change).
  • Feature / Enhancement (non-breaking change).
  • Breaking change (fix or feature that could cause existing functionality to change).
  • Documentation changes.
  • PowerShell code changes.

Change Checklist

  • Requires a change to the documentation.
  • Documentation has been updated.
  • Tests to cover my changes, have been added.
  • All new and existing tests passed?
  • PowerShell code changes: PowerShell v3 compatibility checked?
  • All items are complete on the Definition of Done.

Related Issue

Fixes #1120

@gep13 gep13 requested a review from AdmiringWorm March 23, 2026 11:39
@gep13 gep13 marked this pull request as draft March 23, 2026 11:39
@gep13
Copy link
Copy Markdown
Member Author

gep13 commented Mar 23, 2026

@AdmiringWorm also converting this one to draft for now, until we have a path forward on when this will be going out, along with the other changes that we have in the pipeline for GUI.

Copy link
Copy Markdown
Member

@AdmiringWorm AdmiringWorm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gep13 gep13 force-pushed the issue-1120 branch 2 times, most recently from 2e83c40 to 3a24864 Compare March 24, 2026 16:25
@gep13 gep13 changed the base branch from develop to hotfix/3.0.1 March 24, 2026 16:25
@gep13 gep13 marked this pull request as ready for review March 24, 2026 16:48
@gep13 gep13 requested a review from AdmiringWorm March 24, 2026 16:48
@gep13
Copy link
Copy Markdown
Member Author

gep13 commented Mar 24, 2026

@AdmiringWorm can I get a final review from you on this one? Thanks!

With the introduction of dotnet build, rather than msbuild, the new
net48 folder is causing an issue with gathering of files that need to
be signed using the Chocolatey authenticode certificate.

There are a number of files added to the net48 folder that _need_ to be
signed, but these are not being picked up since the globbing pattern
doesn't look in this folder.

This commit updates the globbing pattern to include this folder, and
also adds an assertion about the number of files that are expected to
be found from each glob.  This should prevent this from happening
again, since the updating of the asserted version number should _only_
be done, when the number of expected files has been known to change.
@gep13
Copy link
Copy Markdown
Member Author

gep13 commented Mar 25, 2026

@AdmiringWorm actually, looks like your approval is still valid. So going to move forward with getting this merged.

@gep13 gep13 merged commit ad4dbfc into chocolatey:hotfix/3.0.1 Mar 25, 2026
2 checks passed
@gep13 gep13 deleted the issue-1120 branch March 25, 2026 06:48
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

Successfully merging this pull request may close these issues.

Digital Signature missing from artifacts of the 3.0.0 release

2 participants