In Tiltfile, create the output directory before go build.

Signed-off-by: Matt Moyer <moyerm@vmware.com>
This commit is contained in:
Matt Moyer 2020-09-23 08:40:00 -05:00
parent 24c654120c
commit fbd3bb48d2
No known key found for this signature in database
GPG Key ID: EAE88AD172C5AE2D

View File

@ -10,7 +10,7 @@ os.putenv('CGO_ENABLED', '0')
# Compile all of our ./cmd/... binaries. # Compile all of our ./cmd/... binaries.
local_resource( local_resource(
'compile', 'compile',
'cd ../../../ && go build -v -ldflags "$(hack/get-ldflags.sh)" -o ./hack/lib/tilt/build ./cmd/...', 'cd ../../../ && mkdir -p ./hack/lib/tilt/build && go build -v -ldflags "$(hack/get-ldflags.sh)" -o ./hack/lib/tilt/build ./cmd/...',
deps=['../../../cmd', '../../../internal', '../../../pkg', '../../../generated'], deps=['../../../cmd', '../../../internal', '../../../pkg', '../../../generated'],
) )