Skip to content

Commit b565d22

Browse files
committed
tilt: ensure Dockerfile directory for podman
Signed-off-by: Benjamin Gentil <[email protected]>
1 parent 3a37397 commit b565d22

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Tiltfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,9 +248,15 @@ def build_go_binary(context, reload_deps, debug, go_main, binary_name, label):
248248
live_reload_deps = []
249249
for d in reload_deps:
250250
live_reload_deps.append(context + "/" + d)
251+
252+
# Ensure the {context}/.tiltbuild/bin directory before any other resources
253+
# `local` is evaluated immediately, other resources are executed later in the startup/when triggered
254+
local("mkdir -p {context}/.tiltbuild/bin".format(context = shlex.quote(context)), quiet = True)
255+
256+
# Build the go binary
251257
local_resource(
252258
label.lower() + "_binary",
253-
cmd = "cd {context};mkdir -p .tiltbuild/bin;{build_cmd}".format(
259+
cmd = "cd {context};{build_cmd}".format(
254260
context = context,
255261
build_cmd = build_cmd,
256262
),

0 commit comments

Comments
 (0)