From 92931dbe7179999cfcfa0da4cf8593e97ffd1891 Mon Sep 17 00:00:00 2001 From: Guillaume Bouvignies Date: Mon, 5 Feb 2024 18:13:59 +0100 Subject: [PATCH] fix: go preload wmill dependencies (#3149) * fix: go preload wmill dependencies * update comment --- Dockerfile | 2 +- backend/windmill-common/src/error.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index e6b95132bf..117fbae732 100644 --- a/Dockerfile +++ b/Dockerfile @@ -200,7 +200,7 @@ RUN if [ "$nsjail" = "true" ]; then apt-get -y update \ curl nodejs npm; fi # go build is slower the first time it is ran, so we prewarm it in the build -RUN mkdir -p /tmp/gobuildwarm && cd /tmp/gobuildwarm && go mod init gobuildwarm && printf "package foo\nimport (\"fmt\"\nwmill \"github.com/windmill-labs/windmill-go-client\")\nfunc main() { v = wmill.GetStatePath()\n fmt.Println(v) }" > warm.go && go build -x && rm -rf /tmp/gobuildwarm +RUN mkdir -p /tmp/gobuildwarm && cd /tmp/gobuildwarm && go mod init gobuildwarm && printf "package foo\nimport (\"fmt\"\nwmill \"github.com/windmill-labs/windmill-go-client\")\nfunc main() { v := wmill.GetStatePath()\n fmt.Println(v) }" > warm.go && go build -x && rm -rf /tmp/gobuildwarm ENV TZ=Etc/UTC diff --git a/backend/windmill-common/src/error.rs b/backend/windmill-common/src/error.rs index a4d7ed2c32..4a1439d7c3 100644 --- a/backend/windmill-common/src/error.rs +++ b/backend/windmill-common/src/error.rs @@ -136,7 +136,7 @@ impl IntoResponse for AppError { } // This enables using `?` on functions that return `Result<_, anyhow::Error>` to turn them into -// `Result<_, AppError>`. That way you don't need to do that manually. +// `Result<_, AppError>`. That way you don't need to do that manually impl From for AppError where E: Into,