-
Notifications
You must be signed in to change notification settings - Fork 763
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
🐛 BUG: [c3] new projects are almost always scaffolded with incorrect compatibility dates, resulting in noisy warnings #2385
Comments
@mrbbot do you know why using the current date stopped working? |
Yep! The issue here is that Once we have For now, we could try fetch the latest |
In Wrangler v3, project creation is handled by |
Previously, we changed wrangler.toml to use the current date for the compatibility_date setting in wrangler.toml when generating workers. But this is almost always going to be new recent and results in a warning. Now we look up the most recent compatibility date via npm on the workerd package and use that instead. Fixes cloudflare#2385
Previously, we changed wrangler.toml to use the current date for the compatibility_date setting in wrangler.toml when generating workers. But this is almost always going to be new recent and results in a warning. Now we look up the most recent compatibility date via npm on the workerd package and use that instead. Fixes cloudflare#2385
Previously, we changed wrangler.toml to use the current date for the compatibility_date setting in wrangler.toml when generating workers. But this is almost always going to be new recent and results in a warning. Now we look up the most recent compatibility date via npm on the workerd package and use that instead. Fixes cloudflare#2385
Previously, we changed wrangler.toml to use the current date for the compatibility_date setting in wrangler.toml when generating workers. But this is almost always going to be new recent and results in a warning. Now we look up the most recent compatibility date via npm on the workerd package and use that instead. Fixes cloudflare#2385
Previously, we changed wrangler.toml to use the current date for the compatibility_date setting in wrangler.toml when generating workers. But this is almost always going to be new recent and results in a warning. Now we look up the most recent compatibility date via npm on the workerd package and use that instead. Fixes cloudflare#2385
Previously, we changed wrangler.toml to use the current date for the compatibility_date setting in wrangler.toml when generating workers. But this is almost always going to be new recent and results in a warning. Now we look up the most recent compatibility date via npm on the workerd package and use that instead. Fixes cloudflare#2385
Previously, we changed wrangler.toml to use the current date for the compatibility_date setting in wrangler.toml when generating workers. But this is almost always going to be new recent and results in a warning. Now we look up the most recent compatibility date via npm on the workerd package and use that instead. Fixes cloudflare#2385
Previously, we changed wrangler.toml to use the current date for the compatibility_date setting in wrangler.toml when generating workers. But this is almost always going to be new recent and results in a warning. Now we look up the most recent compatibility date via npm on the workerd package and use that instead. Fixes cloudflare#2385
Previously, we changed wrangler.toml to use the current date for the compatibility_date setting in wrangler.toml when generating workers. But this is almost always going to be new recent and results in a warning. Now we look up the most recent compatibility date via npm on the workerd package and use that instead. Fixes cloudflare#2385
Previously, we changed wrangler.toml to use the current date for the compatibility_date setting in wrangler.toml when generating workers. But this is almost always going to be new recent and results in a warning. Now we look up the most recent compatibility date via npm on the workerd package and use that instead. Fixes cloudflare#2385
Previously, we changed wrangler.toml to use the current date for the compatibility_date setting in wrangler.toml when generating workers. But this is almost always going to be new recent and results in a warning. Now we look up the most recent compatibility date via npm on the workerd package and use that instead. Fixes cloudflare#2385
Previously, we changed wrangler.toml to use the current date for the compatibility_date setting in wrangler.toml when generating workers. But this is almost always going to be new recent and results in a warning. Now we look up the most recent compatibility date via npm on the workerd package and use that instead. Fixes cloudflare#2385
Previously, we changed wrangler.toml to use the current date for the compatibility_date setting in wrangler.toml when generating workers. But this is almost always going to be new recent and results in a warning. Now we look up the most recent compatibility date via npm on the workerd package and use that instead. Fixes cloudflare#2385
Previously, we changed wrangler.toml to use the current date for the compatibility_date setting in wrangler.toml when generating workers. But this is almost always going to be new recent and results in a warning. Now we look up the most recent compatibility date via npm on the workerd package and use that instead. Fixes cloudflare#2385
Previously, we changed wrangler.toml to use the current date for the compatibility_date setting in wrangler.toml when generating workers. But this is almost always going to be new recent and results in a warning. Now we look up the most recent compatibility date via npm on the workerd package and use that instead. Fixes cloudflare#2385
Previously, we changed wrangler.toml to use the current date for the compatibility_date setting in wrangler.toml when generating workers. But this is almost always going to be new recent and results in a warning. Now we look up the most recent compatibility date via npm on the workerd package and use that instead. Fixes cloudflare#2385
* [C3] fix: use a valid compatibility date for worker templates Previously, we changed wrangler.toml to use the current date for the compatibility_date setting in wrangler.toml when generating workers. But this is almost always going to be new recent and results in a warning. Now we look up the most recent compatibility date via npm on the workerd package and use that instead. Fixes #2385 * Improve workerd date matching and support non-npm runners. * fixup! [C3] fix: use a valid compatibility date for worker templates
* [C3] fix: use a valid compatibility date for worker templates Previously, we changed wrangler.toml to use the current date for the compatibility_date setting in wrangler.toml when generating workers. But this is almost always going to be new recent and results in a warning. Now we look up the most recent compatibility date via npm on the workerd package and use that instead. Fixes #2385 * Improve workerd date matching and support non-npm runners. * fixup! [C3] fix: use a valid compatibility date for worker templates
What version of
Wrangler
are you using?2.6.2
What operating system are you using?
Mac
Describe the Bug
In a brand new project I get the following warning:
While this warning is non-fatal, it adds to noise that is visible each time a
wrangler dev
command runs. Could we avoid scaffolding projects with wrong compat date in some way?For example we could try to fetch the latest compat date when scaffolding new project, and fall back to a version hardcoded into wrangler (which we would need to bump when new compat dates are available).
The text was updated successfully, but these errors were encountered: