Skip to content

Fix/update metadata bom - #157

Open
anionzo wants to merge 4 commits into
knowns-dev:developfrom
anionzo:fix/update-metadata-bom
Open

anionzo wants to merge 4 commits into
knowns-dev:developfrom
anionzo:fix/update-metadata-bom

Conversation

@anionzo

@anionzo anionzo commented Oct 30, 2026

Copy link
Copy Markdown

Description

Related Issue

Fixes #

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactoring (no functional changes)
  • Other (please describe):

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Screenshots (if applicable)

Additional Notes

Copilot AI balanced review requested due to automatic review settings October 30, 2026 15:12

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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

LoadInstallMetadata passed the raw file to json.Unmarshal, so a BOM written by Windows PowerShell 5.1 made 'knowns update' fail with: invalid character 'ï'. Strip a leading BOM before parsing and add a regression test (BOM and CRLF).
Set-Content -Encoding UTF8 adds a BOM on PowerShell 5.1. Use WriteAllText with a BOM-less UTF8 encoding instead. Refs knowns-dev#155.
@anionzo
anionzo force-pushed the fix/update-metadata-bom branch from 1a45047 to aca9ac9 Compare October 30, 2026 16:48
- LoadQueue reads without the queue lock, so on Windows a rename over an
  open queue file fails with "Access is denied", and a read during the
  rename fails with a sharing violation. This surfaced as an intermittent
  TestSearchWithRuntimeDaemonRoutingSharesProviderAcrossConcurrentCalls
  failure. Retry both for a bounded time.
- Creating a symlink on Windows needs a privilege many machines lack.
  Every other symlink test in the repo skips in that case; this one failed.
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.

2 participants