Skip to content

Commit

Permalink
tilt: ensure Dockerfile directory for podman
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Gentil <[email protected]>
  • Loading branch information
bengentil committed Aug 16, 2023
1 parent 3a37397 commit b565d22
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Tiltfile
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,15 @@ def build_go_binary(context, reload_deps, debug, go_main, binary_name, label):
live_reload_deps = []
for d in reload_deps:
live_reload_deps.append(context + "/" + d)

# Ensure the {context}/.tiltbuild/bin directory before any other resources
# `local` is evaluated immediately, other resources are executed later in the startup/when triggered
local("mkdir -p {context}/.tiltbuild/bin".format(context = shlex.quote(context)), quiet = True)

# Build the go binary
local_resource(
label.lower() + "_binary",
cmd = "cd {context};mkdir -p .tiltbuild/bin;{build_cmd}".format(
cmd = "cd {context};{build_cmd}".format(
context = context,
build_cmd = build_cmd,
),
Expand Down

0 comments on commit b565d22

Please sign in to comment.