Skip to content

Feature update tools for apps - #10

Merged
HollisTech merged 3 commits into
mainfrom
feature-update-tools-for-apps
Jan 15, 2026
Merged

HollisTech merged 3 commits into
mainfrom
feature-update-tools-for-apps

Conversation

@HollisTech

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the versionfiles.ps1 script to improve mutex handling, file operation reliability, and error reporting. The changes address synchronization issues and add verification steps for file writes.

Changes:

  • Improved mutex initialization and acquisition logic to handle both creating and acquiring scenarios
  • Added verification logic to confirm file writes complete successfully with expected content lengths
  • Enhanced error handling and logging throughout the script
  • Modified file update logic to only write when content actually differs

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread versionfiles.ps1
Comment thread versionfiles.ps1 Outdated
Comment thread versionfiles.ps1 Outdated
Comment thread versionfiles.ps1 Outdated
Comment thread versionfiles.ps1 Outdated
Comment thread versionfiles.ps1 Outdated
Comment thread versionfiles.ps1
@HollisTech HollisTech added the bug Something isn't working label Jan 15, 2026
@HollisTech
HollisTech requested a review from Copilot January 15, 2026 20:34

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread versionfiles.ps1
Comment thread versionfiles.ps1
Comment on lines 200 to +201
$lock.ReleaseMutex()
log "mutex released."

Copilot AI Jan 15, 2026

Copy link

Choose a reason for hiding this comment

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

ReleaseMutex() is called unconditionally in the try block but not protected in the finally block. If an exception occurs after successfully acquiring the mutex (lines 155-160), the mutex will be released in line 200 which won't be reached, then disposed in the finally block (line 208) without being released. This leaves the mutex in an abandoned state. Move the ReleaseMutex() call to the finally block before Dispose(), and guard it to only release if the mutex was actually acquired.

Copilot uses AI. Check for mistakes.
Comment thread versionfiles.ps1
Comment thread versionfiles.ps1
@HollisTech
HollisTech merged commit 53ab082 into main Jan 15, 2026
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants