Skip to content

Commit b85bf65

Browse files
Update crates/pgt_workspace/src/configuration.rs
Co-authored-by: Julian Domke <68325451+juleswritescode@users.noreply.github.com>
1 parent a24eefa commit b85bf65

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/pgt_workspace/src/configuration.rs

+1
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ pub fn create_config(
175175
if fs.open_with_options(node_schema_path, options).is_ok() {
176176
configuration.schema = node_schema_path.to_str().map(String::from);
177177
} 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)
178179
configuration.schema = Some("https://pgtools.dev/schemas/latest/schema.json".to_string());
179180
} else {
180181
configuration.schema = Some(format!("https://pgtools.dev/schemas/{VERSION}/schema.json"));

0 commit comments

Comments
 (0)