WIP: 🦺 fix(config): validate explicit grid overrides #3
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/s2-grid-validation"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Explicit grid overrides previously accepted NaN, infinities, zero, and negative values, with some invalid values silently falling back to a preset.
Impact
Rejects non-finite and non-positive
--grid/CCO2_GRIDoverrides with a typed configuration error and exit code 2. Positive overrides and regional presets are unchanged.Verification
go test ./...(91 tests)go vet ./...git diff --checkThis PR is intentionally draft.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.