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

feat(compartment-mapper): Archive source URL suffixes #930

Merged
merged 1 commit into from
Nov 4, 2021

Conversation

kriskowal
Copy link
Member

This change improves stack traces from archived applications, by including a source URL suffix suitable to match a file in an IDE workspace with a reasonable confidence in its uniqueness, but no guarantee. This requires threading the original package name, since the last path component is likely to match to the parent directory.

Using the last path component is necessary since, for example, the package named @endo/compartment-mapper lies at packages/compartment-mapper in its workspace and packages generally do not stutter their org in a workspace repository.

There are notable exceptions to the necessary heuristic. Agoric SDK's SwingSet directory contains a package named swingset-vat.

Fixes Agoric/agoric-sdk#3899

@kriskowal kriskowal requested a review from michaelfig November 4, 2021 01:07
Copy link
Member

@michaelfig michaelfig left a comment

Choose a reason for hiding this comment

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

LGTM!

@kriskowal kriskowal merged commit 0dfb83e into master Nov 4, 2021
@kriskowal kriskowal deleted the agoric-sdk-3899-kris-source-url branch November 4, 2021 15:41
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.

Add sourceURL to endoZipBase64 bundle format to restore parity with nestedEvaluate
2 participants