-
Notifications
You must be signed in to change notification settings - Fork 782
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 max asset count message #6627
Conversation
🦋 Changeset detectedLatest commit: 6215151 The changes in this PR will be included in the next version bump. This PR includes changesets to release 4 packages
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 |
54db19b
to
89d5bf8
Compare
A wrangler prerelease is available for testing. You can install this latest build in your project with: npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/10724002843/npm-package-wrangler-6627 You can reference the automatically updated head of this PR with: npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/prs/6627/npm-package-wrangler-6627 Or you can use npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/10724002843/npm-package-wrangler-6627 dev path/to/script.js Additional artifacts:npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/10724002843/npm-package-create-cloudflare-6627 --no-auto-update npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/10724002843/npm-package-cloudflare-kv-asset-handler-6627 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/10724002843/npm-package-miniflare-6627 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/10724002843/npm-package-cloudflare-pages-shared-6627 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/10724002843/npm-package-cloudflare-vitest-pool-workers-6627 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/10724002843/npm-package-cloudflare-workers-editor-shared-6627 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/10724002843/npm-package-cloudflare-workers-shared-6627 Note that these links will no longer work once the GitHub Actions artifact expires.
Please ensure constraints are pinned, and |
I'm a bit confused - doesn't seem like any of the changed code is affecting the 20k limit constant? Was the error not surfacing properly from inside the promise loop? D: Does the same change also need to be done to this file? (yes I really need to move the duplicated code to a shared file somewhere 🥲 )
|
I think the point is that if we throw the error as we find the 20,000th file then we will always say that we found 20,000 files. |
Co-authored-by: Pete Bacon Darwin <[email protected]>
* Fixes asset count error message to properly report count of assets * Error if > 20000 assets rather than >= 20000 Co-authored-by: Pete Bacon Darwin <[email protected]> --------- Co-authored-by: Pete Bacon Darwin <[email protected]>
What this PR solves / how to test
Fixes reporting back just the 20k limit again.
Author has addressed the following