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

Fix markdoc test fail in main #7459

Merged
merged 4 commits into from
Jun 23, 2023
Merged

Fix markdoc test fail in main #7459

merged 4 commits into from
Jun 23, 2023

Conversation

bluwy
Copy link
Member

@bluwy bluwy commented Jun 23, 2023

Changes

Fix a small regression from #7381, where virtual modules are not properly detected as importedModules as they are represented as \0astro:content, but the URLs are /@id/__x00__astro:content.

I fixed the issue by inverting the /@id/ handling to the URLs, so that we can compare directly.

I made refactors along the way, the 3 commits each show step-by-step changes. The 3rd commit is the actual fix.

No changeset as it's fixing an unreleased bug.

Testing

Existing test should pass

Docs

n/a. bug fix.

bluwy added 3 commits June 23, 2023 18:15
We can do this as line 97 also has this guard for each `importedModules`
@changeset-bot
Copy link

changeset-bot bot commented Jun 23, 2023

🦋 Changeset detected

Latest commit: d6c2502

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added the pkg: astro Related to the core `astro` package (scope) label Jun 23, 2023
Copy link
Contributor

@bholmesdev bholmesdev left a comment

Choose a reason for hiding this comment

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

Ah ha, was just about to ask about this! Thanks for the quick fix. No stopping (point) you 👍

@bholmesdev
Copy link
Contributor

Needs changeset though!

@bholmesdev bholmesdev merged commit 869197a into main Jun 23, 2023
@bholmesdev bholmesdev deleted the fix-markdoc-fail branch June 23, 2023 21:00
@astrobot-houston astrobot-houston mentioned this pull request Jun 23, 2023
@bluwy
Copy link
Member Author

bluwy commented Jun 24, 2023

I noted in the description that we don't need a changeset though 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: astro Related to the core `astro` package (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants