Skip to content

fix: handle Windows paths correctly #948

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
Dec 10, 2021
Merged

fix: handle Windows paths correctly #948

merged 3 commits into from
Dec 10, 2021

Conversation

ascorbic
Copy link
Contributor

@ascorbic ascorbic commented Dec 9, 2021

Summary

Changes the way paths are generated for getPageResolver, because the current way is causing trouble on Windows. Updated the tests so that they're more able to catch this.

Test plan

  1. Ensure the tests pass on WIndows

Relevant links (GitHub issues, Notion docs, etc.) or a picture of cute animal

image

Fixes #941

Standard checks:

  • Check the Deploy Preview's Demo site for your PR's functionality
  • Add docs when necessary

🧪 Once merged, make sure to update the version if needed and that it was published correctly.

@netlify
Copy link

netlify bot commented Dec 9, 2021

✔️ Deploy Preview for netlify-plugin-nextjs-demo ready!

🔨 Explore the source changes: 70d64ea

🔍 Inspect the deploy log: https://app.netlify.com/sites/netlify-plugin-nextjs-demo/deploys/61b32e77bcfee00008326a9e

😎 Browse the preview: https://deploy-preview-948--netlify-plugin-nextjs-demo.netlify.app

@github-actions github-actions bot added the type: bug code to address defects in shipped code label Dec 9, 2021
@netlify
Copy link

netlify bot commented Dec 9, 2021

✔️ Deploy Preview for netlify-plugin-nextjs-nx-monorepo-demo ready!

🔨 Explore the source changes: 70d64ea

🔍 Inspect the deploy log: https://app.netlify.com/sites/netlify-plugin-nextjs-nx-monorepo-demo/deploys/61b32e771558190007b40d9b

😎 Browse the preview: https://deploy-preview-948--netlify-plugin-nextjs-nx-monorepo-demo.netlify.app/

@netlify
Copy link

netlify bot commented Dec 9, 2021

✔️ Deploy Preview for netlify-plugin-nextjs-static-root-demo ready!

🔨 Explore the source changes: 70d64ea

🔍 Inspect the deploy log: https://app.netlify.com/sites/netlify-plugin-nextjs-static-root-demo/deploys/61b32e779e35270008b8731d

😎 Browse the preview: https://deploy-preview-948--netlify-plugin-nextjs-static-root-demo.netlify.app

@ascorbic ascorbic force-pushed the mk/windows-page-paths branch 2 times, most recently from 739cc2a to e1de9a7 Compare December 9, 2021 14:01
@ascorbic ascorbic force-pushed the mk/windows-page-paths branch from e1de9a7 to 387c94d Compare December 9, 2021 14:10
@ascorbic ascorbic marked this pull request as ready for review December 9, 2021 15:06
@ascorbic ascorbic requested a review from tiffafoo December 9, 2021 15:25
tiffafoo
tiffafoo previously approved these changes Dec 10, 2021
Copy link

@tiffafoo tiffafoo left a comment

Choose a reason for hiding this comment

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

🪟

@ascorbic ascorbic closed this Dec 10, 2021
@ascorbic ascorbic reopened this Dec 10, 2021
@cypress
Copy link

cypress bot commented Dec 10, 2021



Test summary

16 0 0 0


Run details

Project netlify-plugin-nextjs-default-demo
Status Passed
Commit 70d64ea
Started Dec 10, 2021 10:42 AM
Ended Dec 10, 2021 10:45 AM
Duration 02:14 💡
OS Linux Ubuntu - 20.04
Browser Custom chromium 90

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@cypress
Copy link

cypress bot commented Dec 10, 2021



Test summary

2 0 0 0


Run details

Project netlify-plugin-nextjs-nx-monorepo-demo
Status Passed
Commit 70d64ea
Started Dec 10, 2021 10:43 AM
Ended Dec 10, 2021 10:44 AM
Duration 01:10 💡
OS Linux Ubuntu - 20.04
Browser Custom chromium 90

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@ascorbic ascorbic requested a review from tiffafoo December 10, 2021 09:40
@cypress
Copy link

cypress bot commented Dec 10, 2021



Test summary

6 1 0 0


Run details

Project netlify-plugin-nextjs-static-demo
Status Failed
Commit 70d64ea
Started Dec 10, 2021 10:42 AM
Ended Dec 10, 2021 10:43 AM
Duration 01:23 💡
OS Linux Ubuntu - 20.04
Browser Custom chromium 90

View run in Cypress Dashboard ➡️


Failures

../../cypress/integration/static-root/i18n.spec.ts Failed
1 Localization > should use Accept-Language to choose a locale

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@kodiakhq kodiakhq bot merged commit efa53fd into main Dec 10, 2021
@kodiakhq kodiakhq bot deleted the mk/windows-page-paths branch December 10, 2021 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge type: bug code to address defects in shipped code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: getPageResolver generating incorrect paths on Windows
2 participants