mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-20 16:02:19 +00:00
bun fixes
This commit is contained in:
@@ -1400,6 +1400,7 @@ async fn tarball_workspace(
|
||||
ScriptLang::Go => "go",
|
||||
ScriptLang::Bash => "sh",
|
||||
ScriptLang::Postgresql => "pg.sql",
|
||||
ScriptLang::Mysql => "my.sql",
|
||||
ScriptLang::Nativets => "fetch.ts",
|
||||
ScriptLang::Bun => "bun.ts",
|
||||
};
|
||||
|
||||
@@ -32,6 +32,7 @@ pub enum ScriptLang {
|
||||
Bash,
|
||||
Postgresql,
|
||||
Bun,
|
||||
Mysql,
|
||||
}
|
||||
|
||||
impl ScriptLang {
|
||||
@@ -44,6 +45,7 @@ impl ScriptLang {
|
||||
ScriptLang::Go => "go",
|
||||
ScriptLang::Bash => "bash",
|
||||
ScriptLang::Postgresql => "postgresql",
|
||||
ScriptLang::Mysql => "mysql",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1999,7 +1999,6 @@ let child = if !*DISABLE_NSJAIL {
|
||||
} else {
|
||||
let script_path = format!("{job_dir}/wrapper.ts");
|
||||
let mut args = vec!["run", &script_path, "--prefer-offline"];
|
||||
args.push(&script_path);
|
||||
Command::new(&*BUN_PATH)
|
||||
.current_dir(job_dir)
|
||||
.env_clear()
|
||||
@@ -2255,6 +2254,7 @@ async fn capture_dependency_job(
|
||||
Ok(String::new())
|
||||
},
|
||||
ScriptLang::Postgresql => Ok("".to_owned()),
|
||||
ScriptLang::Mysql => Ok("".to_owned()),
|
||||
ScriptLang::Bash => Ok("".to_owned()),
|
||||
ScriptLang::Nativets => Ok("".to_owned()),
|
||||
|
||||
|
||||
+1
-1
@@ -59,7 +59,7 @@ services:
|
||||
- KEEP_JOB_DIR=false
|
||||
- METRICS_ADDR=false
|
||||
# To handle all tags, remove the env variable altogether. If you do so, you can remove the windmill_worker_native containers.
|
||||
- WORKER_TAGS=deno,python3,go,bash,dependency,flow,hub,other
|
||||
- WORKER_TAGS=deno,python3,go,bash,dependency,flow,hub,other,bun
|
||||
# LICENSE_KEY is only needed for the enterprise edition
|
||||
# - LICENSE_KEY=${WM_LICENSE_KEY}
|
||||
depends_on:
|
||||
|
||||
@@ -45,7 +45,7 @@ export async function main(
|
||||
`
|
||||
|
||||
export const BUN_INIT_CODE = `// import { toWords } from "number-to-words@1"
|
||||
import { setClient, getVariable } from "windmill-client@0.3.14"
|
||||
import { setClient, getVariable } from "windmill-client@0.3.15"
|
||||
|
||||
// fill the type, or use the +Resource type to get a type-safe reference to a resource
|
||||
// type Postgresql = object
|
||||
|
||||
Reference in New Issue
Block a user