Repository navigation
Conversation
A bare number under [storage] file_size_limit failed every command that loads the config with "expected a string, got a number". The config schema accepts a string or a number for this key, but the config key registry gave it the string codec, which rejects a number. Register a size codec for the key whose document side accepts a string or a finite number and reads a number as its decimal text, as the schema does. Env and flag values are unchanged.
Contributor
|
👋 Thanks! The linked issue hasn't been marked A maintainer adds that label once an issue is triaged and ready to be worked on. Please wait for the label before opening a pull request. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
[storage] file_size_limit = 5000000fails every command that loads the config with "expected a string, got a number". The config schema accepts a string or a number for this key and turns a number into its decimal text, but the CLI's config key registry gives the keystringCodec, which rejects the number before the schema sees it.This adds a
sizeCodecwhose document side accepts a string or a finite number, and registers it forstorage.file_size_limitinCLI_CONFIG_CODEC_OVERRIDES. Env and flag values are unchanged: they are already text. A value of another type is still rejected, now with "expected a size such as "50MiB" or a number of bytes".Linked issue
Closes #7959
open-for-contributionlabel (or I'm a Supabase maintainer).Checklist
fix(cli): …).pnpm check:allpasses; relevant package tests pass for every touched workspace, andpnpm types:checkpasses for each touched TypeScript workspace (or workspace declaring it).