Skip to content

fix: Parse URL sources that use the rename '#' tag#118

Merged
dmcilvaney merged 2 commits intomicrosoft:mainfrom
dmcilvaney:damcilva/handle_url_source_renames
Apr 24, 2026
Merged

fix: Parse URL sources that use the rename '#' tag#118
dmcilvaney merged 2 commits intomicrosoft:mainfrom
dmcilvaney:damcilva/handle_url_source_renames

Conversation

@dmcilvaney
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings April 23, 2026 23:01
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Improves RPM spectool output parsing to correctly handle the RPM “rename via URL fragment” convention (e.g., #/local-name), ensuring derived filenames match what RPM tooling expects.

Changes:

  • Extend URL filename extraction to prefer RPM-style fragment-based rename markers (#/... and #./...).
  • Add/adjust unit tests covering fragment-rename cases in both ParseSpectoolOutput and filenameFromURL.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
internal/rpm/spectool/spectool.go Teach filenameFromURL to use RPM fragment rename conventions when present.
internal/rpm/spectool/spectool_test.go Add test cases validating fragment rename extraction behavior.

Comment thread internal/rpm/spectool/spectool.go Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 24, 2026 00:17
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 2 out of 2 changed files in this pull request and generated no new comments.

@dmcilvaney dmcilvaney merged commit 8395b19 into microsoft:main Apr 24, 2026
19 checks passed
@dmcilvaney dmcilvaney deleted the damcilva/handle_url_source_renames branch April 24, 2026 18:03
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.

4 participants