Skip to content
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

Handle local package resolution #4638

Merged
merged 5 commits into from
May 7, 2024
Merged

Handle local package resolution #4638

merged 5 commits into from
May 7, 2024

Conversation

maminrayej
Copy link
Contributor

@maminrayej maminrayej commented May 6, 2024

Right now, the way for handling a local package is the same as a local webc file. This will cause the code to rely on webc hash as a unique identifier in the resolution graph. But the cost of computing the hash for a local package is much higher than a local webc file since for the package, we must serialize the package to get the hash.

This PR adds a new code path for running a local package and uses the hash of the package path as its unique identifier in the dependency graph.

@maminrayej maminrayej marked this pull request as ready for review May 6, 2024 11:20
@maminrayej maminrayej requested a review from syrusakbary as a code owner May 6, 2024 11:20
Copy link
Member

@syrusakbary syrusakbary left a comment

Choose a reason for hiding this comment

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

Looks good for me, but I think since is touching Binary package will be better for @theduke to do the final approval

@theduke theduke changed the title handle local package resolution Handle local package resolution May 7, 2024
@maminrayej maminrayej merged commit 387e2c3 into main May 7, 2024
61 checks passed
@maminrayej maminrayej deleted the use-path-hash branch May 7, 2024 14:55
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.

3 participants