File tree Expand file tree Collapse file tree 3 files changed +13
-37
lines changed Expand file tree Collapse file tree 3 files changed +13
-37
lines changed Original file line number Diff line number Diff line change 1
- .github /
2
1
.idea /
3
2
.vscode /
4
3
bin /
5
- charts /
6
- docs /
7
- config /
8
- examples /
9
- hack /
10
- manifest /
11
- spark-docker /
12
- test /
13
- vendor /
14
- .dockerignore
15
- .DS_Store
16
- .gitignore
17
- .gitlab-ci.yaml
18
- .golangci.yaml
19
- .pre-commit-config.yaml
20
- ADOPTERS.md
21
- CODE_OF_CONDUCT.md
22
- codecov.ymal
23
- CONTRIBUTING.md
4
+ codecov.yaml
24
5
cover.out
25
- Dockerfile
26
- LICENSE
27
- OWNERS
28
- PROJECT
29
- README.md
30
- test.sh
6
+ .DS_Store
7
+ * .iml
Original file line number Diff line number Diff line change
1
+ .idea /
2
+ .vscode /
1
3
bin /
2
- vendor /
4
+ codecov.yaml
3
5
cover.out
4
- ** /* .iml
5
-
6
- # Various IDEs
7
- .idea /
8
- .vscode /
6
+ .DS_Store
7
+ * .iml
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ GIT_TREE_STATE := $(shell if [ -z "`git status --porcelain`" ]; then echo "clean
21
21
GIT_SHA := $(shell git rev-parse --short HEAD || echo "HEAD")
22
22
GIT_VERSION := ${VERSION}+${GIT_SHA}
23
23
24
- REPO := github.com/kubeflow/spark-operator
24
+ MODULE_PATH := $( shell awk '/^module/{print $$2; exit}' go.mod)
25
25
SPARK_OPERATOR_GOPATH := /go/src/github.com/kubeflow/spark-operator
26
26
SPARK_OPERATOR_CHART_PATH := charts/spark-operator-chart
27
27
DEP_VERSION := ` grep DEP_VERSION= Dockerfile | awk -F\" ' {print $$2}' `
@@ -163,10 +163,10 @@ e2e-test: envtest ## Run the e2e tests against a Kind k8s instance that is spun
163
163
# #@ Build
164
164
165
165
override LDFLAGS += \
166
- -X ${REPO }.version=${GIT_VERSION} \
167
- -X ${REPO }.buildDate=${BUILD_DATE} \
168
- -X ${REPO }.gitCommit=${GIT_COMMIT} \
169
- -X ${REPO }.gitTreeState=${GIT_TREE_STATE} \
166
+ -X ${MODULE_PATH }.version=${GIT_VERSION} \
167
+ -X ${MODULE_PATH }.buildDate=${BUILD_DATE} \
168
+ -X ${MODULE_PATH }.gitCommit=${GIT_COMMIT} \
169
+ -X ${MODULE_PATH }.gitTreeState=${GIT_TREE_STATE} \
170
170
-extldflags "-static"
171
171
172
172
.PHONY : build-operator
You can’t perform that action at this time.
0 commit comments