Skip to content

Commit

Permalink
Fix make generate and run it
Browse files Browse the repository at this point in the history
Signed-off-by: Haytham Abuelfutuh <[email protected]>
  • Loading branch information
EngHabu committed Jul 4, 2024
1 parent 76005db commit ddc3fe0
Show file tree
Hide file tree
Showing 14 changed files with 90 additions and 585 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export REPOSITORY=flyte
export REPO_ROOT := $(shell pwd)
include boilerplate/flyte/end2end/Makefile
include boilerplate/flyte/golang_test_targets/Makefile

Expand Down Expand Up @@ -136,8 +137,8 @@ go-tidy:
make -C flytestdlib go-tidy
make -C flytecopilot go-tidy

.PHONY: gen
gen:
.PHONY: generate
generate:
make -C flyteidl generate
make -C flyteadmin generate
make -C flytepropeller generate
Expand Down
3 changes: 2 additions & 1 deletion boilerplate/flyte/golang_test_targets/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
# TO OPT OUT OF UPDATES, SEE https://github.com/flyteorg/boilerplate/blob/master/Readme.rst

LINT_FLAGS ?=
export REPO_ROOT ?= $(shell pwd)

.PHONY: download_tooling
download_tooling: #download dependencies (including test deps) for the package
@../boilerplate/flyte/golang_test_targets/download_tooling.sh
@${REPO_ROOT}/boilerplate/flyte/golang_test_targets/download_tooling.sh

.PHONY: generate
generate: download_tooling #generate go code
Expand Down
2 changes: 1 addition & 1 deletion boilerplate/flyte/golang_test_targets/download_tooling.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ cp $REPO_ROOT/flytestdlib/bin/pflags $(go env GOPATH)/bin

tmp_dir=$(mktemp -d -t gotooling-XXX)
echo "Using temp directory ${tmp_dir}"
cp -R ../boilerplate/flyte/golang_support_tools/* $tmp_dir
cp -R $REPO_ROOT/boilerplate/flyte/golang_support_tools/* $tmp_dir
pushd "$tmp_dir"

for tool in "${tools[@]}"; do
Expand Down
2 changes: 1 addition & 1 deletion datacatalog/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export REPOSITORY=datacatalog
export REPO_ROOT=..
export REPO_ROOT ?= $(shell pwd)/../
include ../boilerplate/flyte/docker_build/Makefile
include ../boilerplate/flyte/golang_test_targets/Makefile

Expand Down
2 changes: 1 addition & 1 deletion flyteadmin/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export REPOSITORY=flyteadmin
export FLYTE_SCHEDULER_REPOSITORY=flytescheduler
export REPO_ROOT=..
export REPO_ROOT ?= $(shell pwd)/../
include ../boilerplate/flyte/docker_build/Makefile
include ../boilerplate/flyte/golang_test_targets/Makefile
include ../boilerplate/flyte/end2end/Makefile
Expand Down
2 changes: 1 addition & 1 deletion flytecopilot/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export REPOSITORY=flytecopilot
export REPO_ROOT=..
export REPO_ROOT ?= $(shell pwd)/../
include ../boilerplate/flyte/docker_build/Makefile
include ../boilerplate/flyte/golang_test_targets/Makefile

Expand Down
2 changes: 1 addition & 1 deletion flytectl/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export REPOSITORY=flytectl
export REPO_ROOT=..
export REPO_ROOT ?= $(shell pwd)/../
include ../boilerplate/flyte/docker_build/Makefile
include ../boilerplate/flyte/golang_test_targets/Makefile
include ../boilerplate/flyte/end2end/Makefile
Expand Down
2 changes: 1 addition & 1 deletion flyteidl/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export REPOSITORY=flyteidl
export REPO_ROOT=..
export REPO_ROOT ?= $(shell pwd)/../
include ../boilerplate/flyte/golang_test_targets/Makefile

define PIP_COMPILE
Expand Down
Loading

0 comments on commit ddc3fe0

Please sign in to comment.