Skip to content

Fix package id string to contain sub module #1592

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 15, 2025
Merged

Fix package id string to contain sub module #1592

merged 3 commits into from
Aug 15, 2025

Conversation

sheetalkamat
Copy link
Member

Noticed this while porting tsc -b tests

@Copilot Copilot AI review requested due to automatic review settings August 15, 2025 18:51
Copy link
Contributor

@Copilot 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 the package ID string format to include the resolved submodule path instead of just the package name. The change ensures that package IDs contain the full path to the resolved module, making them more specific and unique.

  • Updates the PackageId.String() method to use PackageName() instead of the raw Name field
  • Updates test baseline files to reflect the new package ID format that includes submodule paths

Reviewed Changes

Copilot reviewed 28 out of 28 changed files in this pull request and generated no comments.

File Description
internal/module/types.go Changed PackageId.String() to use PackageName() method instead of raw Name field
testdata/baselines/reference/... Updated 24 test baseline files to reflect new package ID format with submodule paths

@sheetalkamat sheetalkamat enabled auto-merge August 15, 2025 18:58
@sheetalkamat sheetalkamat added this pull request to the merge queue Aug 15, 2025
Merged via the queue into main with commit fc59d1a Aug 15, 2025
22 checks passed
@sheetalkamat sheetalkamat deleted the packageId branch August 15, 2025 19:29
andrewbranch pushed a commit to andrewbranch/typescript-go that referenced this pull request Aug 18, 2025
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