Skip to content

Commit

Permalink
fix: improve codebase support
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenfiszel committed Jan 30, 2025
1 parent 0fdcce5 commit c8cc9d2
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 36 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

13 changes: 11 additions & 2 deletions backend/windmill-common/src/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ pub mod script {
lock AS \"lock: String\", \
language AS \"language: Option<ScriptLang>\", \
envs AS \"envs: Vec<String>\", \
codebase AS \"codebase: String\" \
codebase LIKE '%.tar' as use_tar \
FROM script WHERE hash = $1 LIMIT 1",
hash.0
)
Expand All @@ -543,7 +543,16 @@ pub mod script {
meta: Some(ScriptMetadata {
language: r.language,
envs: r.envs,
codebase: r.codebase,
codebase: if let Some(use_tar) = r.use_tar {
let sh = hash.0.to_string();
if use_tar {
Some(format!("{sh}.tar"))
} else {
Some(sh)
}
} else {
None
},
}),
})
});
Expand Down

0 comments on commit c8cc9d2

Please sign in to comment.