We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a24eefa commit b85bf65Copy full SHA for b85bf65
crates/pgt_workspace/src/configuration.rs
@@ -175,6 +175,7 @@ pub fn create_config(
175
if fs.open_with_options(node_schema_path, options).is_ok() {
176
configuration.schema = node_schema_path.to_str().map(String::from);
177
} else if VERSION == "0.0.0" {
178
+ // VERSION is 0.0.0 if it has not been explicitly set (e.g local dev, as fallback)
179
configuration.schema = Some("https://pgtools.dev/schemas/latest/schema.json".to_string());
180
} else {
181
configuration.schema = Some(format!("https://pgtools.dev/schemas/{VERSION}/schema.json"));
0 commit comments