Skip to content

Commit

Permalink
fix: ensure generating plugins-imports outside docker container (#682)
Browse files Browse the repository at this point in the history
  • Loading branch information
snakorse authored Feb 24, 2023
1 parent 745d822 commit d0d2be2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,13 @@ lint-e2e: clean tools
cd test && pwd && $(GO_LINT) run -v --timeout 5m ./...

.PHONY: core
core: clean
core: clean import_plugins
./scripts/gen_build_scripts.sh core $(GENERATED_HOME) $(VERSION) $(BUILD_REPOSITORY) $(OUT_DIR) $(DOCKER_BUILD_EXPORT_GO_ENVS) $(DOCKER_BUILD_COPY_GIT_CONFIGS) $(PLUGINS_CONFIG_FILE) $(GO_MOD_FILE)
./scripts/docker_build.sh build $(GENERATED_HOME) $(VERSION) $(BUILD_REPOSITORY) false $(DOCKER_BUILD_USE_BUILDKIT)
./$(GENERATED_HOME)/gen_copy_docker.sh

.PHONY: plugin
plugin: clean
plugin: clean import_plugins
./scripts/gen_build_scripts.sh plugin $(GENERATED_HOME) $(VERSION) $(BUILD_REPOSITORY) $(OUT_DIR) $(DOCKER_BUILD_EXPORT_GO_ENVS) $(DOCKER_BUILD_COPY_GIT_CONFIGS) $(PLUGINS_CONFIG_FILE) $(GO_MOD_FILE)
./scripts/docker_build.sh build $(GENERATED_HOME) $(VERSION) $(BUILD_REPOSITORY) false $(DOCKER_BUILD_USE_BUILDKIT)
./$(GENERATED_HOME)/gen_copy_docker.sh
Expand All @@ -140,7 +140,7 @@ import_plugins:
./scripts/import_plugins.sh $(PLUGINS_CONFIG_FILE) $(GO_MOD_FILE)

.PHONY: e2edocker
e2edocker: clean
e2edocker: clean import_plugins
./scripts/gen_build_scripts.sh e2e $(GENERATED_HOME) $(VERSION) $(DOCKER_REPOSITORY) $(OUT_DIR) $(DOCKER_BUILD_EXPORT_GO_ENVS) $(DOCKER_BUILD_COPY_GIT_CONFIGS) $(PLUGINS_CONFIG_FILE) $(GO_MOD_FILE)
./scripts/docker_build.sh development $(GENERATED_HOME) $(VERSION) $(DOCKER_REPOSITORY) false $(DOCKER_BUILD_USE_BUILDKIT)

Expand All @@ -150,7 +150,7 @@ gocdocker: clean
./scripts/docker_build.sh goc $(GENERATED_HOME) latest goc-server false $(DOCKER_BUILD_USE_BUILDKIT)

.PHONY: vendor
vendor: clean
vendor: clean import_plugins
rm -rf vendor
$(GO) mod vendor

Expand Down Expand Up @@ -202,7 +202,7 @@ unittest_pluginmanager: clean import_plugins
mv ./plugins/input/prometheus/input_prometheus.go.bak ./plugins/input/prometheus/input_prometheus.go

.PHONY: all
all: clean
all: clean import_plugins
./scripts/gen_build_scripts.sh all $(GENERATED_HOME) $(VERSION) $(BUILD_REPOSITORY) $(OUT_DIR) $(DOCKER_BUILD_EXPORT_GO_ENVS) $(DOCKER_BUILD_COPY_GIT_CONFIGS) $(PLUGINS_CONFIG_FILE) $(GO_MOD_FILE)
./scripts/docker_build.sh build $(GENERATED_HOME) $(VERSION) $(BUILD_REPOSITORY) false $(DOCKER_BUILD_USE_BUILDKIT)
./$(GENERATED_HOME)/gen_copy_docker.sh
Expand Down

0 comments on commit d0d2be2

Please sign in to comment.