Skip to content

fix: false positive for non-unique packages #348

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 1 commit into from
Jul 7, 2022

Conversation

blaugold
Copy link
Collaborator

@blaugold blaugold commented Jul 7, 2022

It is possible that resolvePackages finds the same package twice, under paths that point to the same location but are represented by Strings that are not equal.

This change ensures a package is only found once by using functions from package:path for using paths as keys in a Map.

Description

Type of Change

  • feat -- New feature (non-breaking change which adds functionality)
  • 🛠️ fix -- Bug fix (non-breaking change which fixes an issue)
  • ! -- Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 refactor -- Code refactor
  • ci -- Build configuration change
  • 📝 docs -- Documentation
  • 🗑️ chore -- Chore

It is possible that `resolvePackages` finds the same package twice, under paths that point to the same location but are represented by `String`s that are not equal.

This change ensures a package is only found once by using functions from  `package:path` for using paths as keys in a `Map`.
@blaugold blaugold merged commit 9c13619 into main Jul 7, 2022
@blaugold blaugold deleted the fix/false-non-unique-package branch July 7, 2022 18:21
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