You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Motivation
Due to automated dependency updates, I would like a built-in way to validate that the
$schemaversion in the config matches the installed version.This builds on the schema version warning added in #4147, but I need the ability to enforce this in CI/CD pipelines.
This would allow CI to catch configuration drift as soon as the update is made.
Current Situation
When the
$schemaversion is mismatched, bothbiome migrate --error-on-warningsandbiome rage --error-on-warningsstill return0exit codes.`biome migrate` Output
`biome rage` Output
This led me to making a fragile hack of
grep-ing the output to see if the config needs updates.Possible Solutions
biome.jsonto require an up-to-date schema.I personally like this option since it doesn't change existing behavior and applies to all commands without further user-code needed.
Make
biome migrate --error-on-warnings/biome rage --error-on-warningsreturn an error code if a migration is suggested (breaking change)Make
biome rage/biome migratereturn an error code if a migration is suggested (breaking change)Beta Was this translation helpful? Give feedback.
All reactions