Skip to content

fix: transform Regex named capture groups for Golang #1809

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 13 commits into from
Jan 18, 2023

Conversation

orinokai
Copy link
Contributor

@orinokai orinokai commented Nov 24, 2022

Summary

Quick fix to transform named captured groups in Golang syntax so that edge functions manifests are generated correctly.

Update: PR now simply transforms named capture groups to standard capture groups.

This fix requires the edge-bundler fix linked below before it can be merged.

Test plan

The previous failing test edge-render-getserversideprops is still failing, but now due to a different issue which is captured in #1890.

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

Fixes #1794
Requires netlify/edge-bundler#226

@netlify
Copy link

netlify bot commented Nov 24, 2022

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

Name Link
🔨 Latest commit 99c06d2
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-nx-monorepo-demo/deploys/63c7c17791d5270008bf469d
😎 Deploy Preview https://deploy-preview-1809--netlify-plugin-nextjs-nx-monorepo-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Nov 24, 2022

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

Name Link
🔨 Latest commit 99c06d2
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-static-root-demo/deploys/63c7c177f0c0c20008286963
😎 Deploy Preview https://deploy-preview-1809--netlify-plugin-nextjs-static-root-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@github-actions github-actions bot added the type: bug code to address defects in shipped code label Nov 24, 2022
@netlify
Copy link

netlify bot commented Nov 24, 2022

Deploy Preview for netlify-plugin-nextjs-export-demo ready!

Name Link
🔨 Latest commit 99c06d2
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-export-demo/deploys/63c7c1773328a000087c2855
😎 Deploy Preview https://deploy-preview-1809--netlify-plugin-nextjs-export-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Nov 24, 2022

Deploy Preview for netlify-plugin-nextjs-next-auth-demo ready!

Name Link
🔨 Latest commit 99c06d2
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-next-auth-demo/deploys/63c7c1770605990008ac076a
😎 Deploy Preview https://deploy-preview-1809--netlify-plugin-nextjs-next-auth-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Nov 24, 2022

Deploy Preview for next-i18next-demo ready!

Name Link
🔨 Latest commit 99c06d2
🔍 Latest deploy log https://app.netlify.com/sites/next-i18next-demo/deploys/63c7c1772eeade0009a3f39b
😎 Deploy Preview https://deploy-preview-1809--next-i18next-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Nov 24, 2022

Deploy Preview for next-plugin-canary ready!

Name Link
🔨 Latest commit 99c06d2
🔍 Latest deploy log https://app.netlify.com/sites/next-plugin-canary/deploys/63c7c1773da180000840c1d9
😎 Deploy Preview https://deploy-preview-1809--next-plugin-canary.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Nov 24, 2022

Deploy Preview for next-plugin-edge-middleware ready!

Name Link
🔨 Latest commit 99c06d2
🔍 Latest deploy log https://app.netlify.com/sites/next-plugin-edge-middleware/deploys/63c7c1774d29a000084c352f
😎 Deploy Preview https://deploy-preview-1809--next-plugin-edge-middleware.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Nov 24, 2022

Deploy Preview for nextjs-plugin-custom-routes-demo ready!

Name Link
🔨 Latest commit 99c06d2
🔍 Latest deploy log https://app.netlify.com/sites/nextjs-plugin-custom-routes-demo/deploys/63c7c1772aff1a000835e9ef
😎 Deploy Preview https://deploy-preview-1809--nextjs-plugin-custom-routes-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Nov 24, 2022

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

Name Link
🔨 Latest commit 99c06d2
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-demo/deploys/63c7c17710af180008b4f395
😎 Deploy Preview https://deploy-preview-1809--netlify-plugin-nextjs-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@orinokai orinokai marked this pull request as ready for review November 25, 2022 14:08
@orinokai orinokai requested a review from a team November 25, 2022 14:08
@ascorbic
Copy link
Contributor

ascorbic commented Nov 29, 2022

@orinokai can this be merged? It doesn't rely one edge bundler changes anymore, does it?

@orinokai
Copy link
Contributor Author

orinokai commented Dec 2, 2022

currently looking into a failing test (edge-render-getserversideprops) regarding a problem with data routes

@sarahetter
Copy link

Hey @orinokai
We should work with @netlify/runtime-pod-compute after this is merged - right now the system is ignoring these regex match errors (suppressing warnings/errors), but we'd like to not have to suppress them.

@kodiakhq kodiakhq bot merged commit 15790aa into main Jan 18, 2023
@kodiakhq kodiakhq bot deleted the rs/transform-named-capture-groups branch January 18, 2023 10:10
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.

Middleware matchers generate invalid Golang regexp capture groups
3 participants