mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-24 08:01:38 +00:00
fix: add support for NPM_CONFIG_REGISTRY
This commit is contained in:
@@ -242,6 +242,13 @@ pub async fn install_lockfile(
|
||||
.args(vec!["install"])
|
||||
.stdout(Stdio::piped())
|
||||
.stderr(Stdio::piped());
|
||||
if npm_mode {
|
||||
let registry = NPM_CONFIG_REGISTRY.read().await.clone();
|
||||
if let Some(registry) = registry {
|
||||
child_cmd.env("NPM_CONFIG_REGISTRY", registry);
|
||||
}
|
||||
}
|
||||
|
||||
let child_process = start_child_process(child_cmd, &*BUN_PATH).await?;
|
||||
|
||||
gen_bunfig(job_dir).await?;
|
||||
|
||||
@@ -80,6 +80,13 @@ export async function generateMetadataInternal(
|
||||
scriptPath,
|
||||
globalDeps
|
||||
);
|
||||
if (rawReqs) {
|
||||
log.info(
|
||||
colors.blue(
|
||||
`Found raw requirements (package.json/requirements.txt) for ${scriptPath}, using it`
|
||||
)
|
||||
);
|
||||
}
|
||||
const metadataWithType = await parseMetadataFile(
|
||||
remotePath,
|
||||
undefined,
|
||||
|
||||
Reference in New Issue
Block a user