diff --git a/backend/migrations/20240207203435_accept_missing_config_in_policies.down.sql b/backend/migrations/20240207203435_accept_missing_config_in_policies.down.sql new file mode 100644 index 0000000000..d2f607c5b8 --- /dev/null +++ b/backend/migrations/20240207203435_accept_missing_config_in_policies.down.sql @@ -0,0 +1 @@ +-- Add down migration script here diff --git a/backend/migrations/20240207203435_accept_missing_config_in_policies.up.sql b/backend/migrations/20240207203435_accept_missing_config_in_policies.up.sql new file mode 100644 index 0000000000..0da0a538a3 --- /dev/null +++ b/backend/migrations/20240207203435_accept_missing_config_in_policies.up.sql @@ -0,0 +1 @@ +-- Add up migration script here diff --git a/backend/windmill-common/src/scripts.rs b/backend/windmill-common/src/scripts.rs index d72b2cc444..cb4c23ff2e 100644 --- a/backend/windmill-common/src/scripts.rs +++ b/backend/windmill-common/src/scripts.rs @@ -291,6 +291,13 @@ where Ok(None) } + fn visit_unit(self) -> Result + where + E: serde::de::Error, + { + Ok(None) + } + fn visit_seq(self, mut seq: A) -> Result where A: serde::de::SeqAccess<'de>, diff --git a/cli/script.ts b/cli/script.ts index d80352ecf8..dd68107b0a 100644 --- a/cli/script.ts +++ b/cli/script.ts @@ -72,7 +72,7 @@ async function push(opts: PushOptions, filePath: string) { await requireLogin(opts); const globalDeps = await findGlobalDeps(); - await handleFile(filePath, workspace, [], undefined, false, opts, globalDeps); + await handleFile(filePath, workspace, [], undefined, opts, globalDeps); log.info(colors.bold.underline.green(`Script ${filePath} pushed`)); }