File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -62,11 +62,11 @@ default: install
62
62
# ####################################### Code Check ####################################################
63
63
# # Static Code Analysis
64
64
vet : swagger
65
- GOOS=$(GOOS ) GOARCH=$( GOARCH ) go vet $$(GOOS=${GOOS} GOARCH=${GOARCH} go list ./... )
65
+ GOOS=$(GOOS ) GOARCH=amd64 go vet $$(GOOS=${GOOS} GOARCH=${GOARCH} go list ./... )
66
66
67
67
# # Unit Test
68
- test :
69
- cd $(PROJECT_NAME ) && GOOS=$(GOOS ) GOARCH=$( GOARCH ) go test -v ./... -count 1
68
+ test :
69
+ cd $(PROJECT_NAME ) && GOOS=$(GOOS ) GOARCH=amd64 go test -v ./... -count 1
70
70
71
71
clean :
72
72
GOOS=$(GOOS ) GOARCH=$(GOARCH ) go clean
@@ -82,12 +82,12 @@ install_scannerd:
82
82
dlv_install :
83
83
GOOS=$(GOOS ) GOARCH=$(GOARCH ) go build -gcflags " all=-N -l" $(GO_BUILD_FLAGS ) ${LDFLAGS} -tags $(GO_BUILD_TAGS ) -o $(GOBIN ) /sqled ./$(PROJECT_NAME ) /cmd/sqled
84
84
swagger :
85
- GOARCH=$( GOARCH ) go build -o ${shell pwd} /bin/swag ${shell pwd} /build/swag/main.go
85
+ GOARCH=amd64 go build -o ${shell pwd} /bin/swag ${shell pwd} /build/swag/main.go
86
86
rm -rf ${shell pwd} /sqle/docs
87
87
${shell pwd} /bin/swag init -g ./$(PROJECT_NAME ) /api/app.go -o ${shell pwd} /sqle/docs
88
88
89
89
parser :
90
- cd build/goyacc && GOOS=${GOOS} GOARCH=$( GOARCH ) GOBIN=$(GOBIN ) go install
90
+ cd build/goyacc && GOOS=${GOOS} GOARCH=amd64 GOBIN=$(GOBIN ) go install
91
91
$(GOBIN ) /goyacc -o /dev/null ${PARSER_PATH} /parser.y
92
92
$(GOBIN ) /goyacc -o ${PARSER_PATH} /parser.go ${PARSER_PATH} /parser.y 2>&1 | egrep " (shift|reduce)/reduce" | awk ' {print} END {if (NR > 0) {print "Find conflict in parser.y. Please check y.output for more information."; exit 1;}}'
93
93
rm -f y.output
You can’t perform that action at this time.
0 commit comments