Skip to content

Conversation

@MikeMcQuaid
Copy link
Member

We need to fully qualify the Pathname class to avoid runtime Sorbet errors.

Fixes #21147

We need to fully qualify the Pathname class to avoid runtime Sorbet
errors.
Copilot AI review requested due to automatic review settings December 1, 2025 09:27
@MikeMcQuaid MikeMcQuaid enabled auto-merge December 1, 2025 09:28
Copy link
Member

@bevanjkay bevanjkay left a comment

Choose a reason for hiding this comment

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

Works for me 👍 Thanks @MikeMcQuaid

Copilot finished reviewing on behalf of MikeMcQuaid December 1, 2025 09:30
Copy link
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

This PR fixes a Sorbet type error in the Linux-specific override for the Cask artifact relocated module by fully qualifying the Pathname class references in the type signature. This change addresses issue #21147.

Key changes:

  • Updated the add_altname_metadata method signature to use ::Pathname instead of Pathname for both the file and altname parameters

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

@MikeMcQuaid MikeMcQuaid added this pull request to the merge queue Dec 1, 2025
Merged via the queue into main with commit 1383417 Dec 1, 2025
41 checks passed
@MikeMcQuaid MikeMcQuaid deleted the fix_linux_artifact branch December 1, 2025 10:05
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.

Bug: Cask artifact stanza fails on Linux after bd4eb5ed - Sorbet type mismatch in add_altname_metadata

3 participants