You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by al...@apache.org on 2021/10/05 06:31:57 UTC
[dubbo-go-pixiu] branch develop updated: go build -i is deprecated.
refer to https://github.com/golang/go/issues/37962
This is an automated email from the ASF dual-hosted git repository.
alexstocks pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/dubbo-go-pixiu.git
The following commit(s) were added to refs/heads/develop by this push:
new 0f485ea go build -i is deprecated. refer to https://github.com/golang/go/issues/37962
new 1663747 Merge pull request #269 from awayings/fix_makefile_remove_go_build_cache
0f485ea is described below
commit 0f485ea85bb4abd1d1e18dedafb557dbddb2fc56
Author: awayings <aw...@gmail.com>
AuthorDate: Tue Oct 5 13:41:05 2021 +0800
go build -i is deprecated. refer to https://github.com/golang/go/issues/37962
---
igt/Makefile | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/igt/Makefile b/igt/Makefile
index bb64db9..8acac03 100644
--- a/igt/Makefile
+++ b/igt/Makefile
@@ -82,7 +82,7 @@ build: $(OUT_DIR)/$(PROJECT_NAME)$(EXT_NAME) config
.PHONY: $(OUT_DIR)/$(PROJECT_NAME)$(EXT_NAME)
$(OUT_DIR)/$(PROJECT_NAME)$(EXT_NAME):
$(info > Buiding application binary: $(OUT_DIR)/$(PROJECT_NAME)$(EXT_NAME))
- @CGO_ENABLED=$(CGO) GOOS=$(GOOS) GOARCH=$(GOARCH) go build $(GCFLAGS) -ldflags=$(LDFLAGS) -i -o $(OUT_DIR)/server/$(PROJECT_NAME)$(EXT_NAME) $(SOURCES)
+ @CGO_ENABLED=$(CGO) GOOS=$(GOOS) GOARCH=$(GOARCH) go build $(GCFLAGS) -ldflags=$(LDFLAGS) -o $(OUT_DIR)/server/$(PROJECT_NAME)$(EXT_NAME) $(SOURCES)
## config: Setup config files
@@ -141,7 +141,7 @@ run: buildPixiu
## buildPixiu: start pixiu
.PHONY: buildPixiu
buildPixiu:
- @CGO_ENABLED=$(CGO) GOOS=$(GOOS) GOARCH=$(GOARCH) go build $(GCFLAGS) -ldflags=$(LDFLAGS) -i -o $(OUT_DIR)/dubbo-go-pixiu$(EXT_NAME) $(pixiuSources)
+ @CGO_ENABLED=$(CGO) GOOS=$(GOOS) GOARCH=$(GOARCH) go build $(GCFLAGS) -ldflags=$(LDFLAGS) -o $(OUT_DIR)/dubbo-go-pixiu$(EXT_NAME) $(pixiuSources)
@-$(OUT_DIR)/dubbo-go-pixiu$(EXT_NAME) gateway start -a $(API_CONFIG_PATH) -c $(CONFIG_PATH) & echo $$! > $(PIXIU_PID)
@cat $(PIXIU_PID) | sed "/^/s/^/ \> PIXIU_PID: /"
@@ -149,7 +149,7 @@ buildPixiu:
## startPixiu: start pixiu foreground
.PHONY: startPixiu
startPixiu:
- @CGO_ENABLED=$(CGO) GOOS=$(GOOS) GOARCH=$(GOARCH) go build $(GCFLAGS) -ldflags=$(LDFLAGS) -i -o $(OUT_DIR)/dubbo-go-pixiu$(EXT_NAME) $(pixiuSources)
+ @CGO_ENABLED=$(CGO) GOOS=$(GOOS) GOARCH=$(GOARCH) go build $(GCFLAGS) -ldflags=$(LDFLAGS) -o $(OUT_DIR)/dubbo-go-pixiu$(EXT_NAME) $(pixiuSources)
@-$(OUT_DIR)/dubbo-go-pixiu$(EXT_NAME) gateway start -a $(API_CONFIG_PATH) -c $(CONFIG_PATH)
## stop: Stop running the application (for server)
@@ -164,4 +164,4 @@ stop:
integration:
$(info > Running integration test for application $(PROJECT_NAME))
@go clean -testcache
- @go test -tags integration -v $(PROJECT_DIR)/test/...
\ No newline at end of file
+ @go test -tags integration -v $(PROJECT_DIR)/test/...