Skip to content
This repository was archived by the owner on Dec 12, 2025. It is now read-only.

Commit c4a5c4f

Browse files
committed
Remove vendoring
1 parent cfd2a43 commit c4a5c4f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,4 @@ tags
8080
vendor
8181
zz_generated*.go
8282
__pycache__
83+
Dockerfile

scripts/dev/templates/Dockerfile.operator

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
{% block build_binary -%}
44
# TODO: This build takes longer than it needs to and can still be optimized
5-
RUN go build -o build/_output/bin/mongodb-kubernetes-operator -mod=vendor github.com/mongodb/mongodb-kubernetes-operator/cmd/manager
5+
RUN go build -o build/_output/bin/mongodb-kubernetes-operator github.com/mongodb/mongodb-kubernetes-operator/cmd/manager
66

77
ENV manifest_version=4.2
88
RUN mkdir -p /content/ \
@@ -29,4 +29,4 @@ USER ${USER_UID}
2929

3030
{% block command -%}
3131
ENTRYPOINT ["/usr/local/bin/entrypoint"]
32-
{% endblock -%}
32+
{% endblock -%}

scripts/dev/templates/Dockerfile.template

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ FROM {{base_image}}
1010

1111
ENV OPERATOR_SDK_VERSION v0.15.2
1212
ENV GO111MODULE=on
13-
ENV GOFLAGS="-mod=vendor"
1413
ENV GOPATH ""
1514

1615
RUN curl -LO https://github.com/operator-framework/operator-sdk/releases/download/${OPERATOR_SDK_VERSION}/operator-sdk-${OPERATOR_SDK_VERSION}-x86_64-linux-gnu \
@@ -22,7 +21,7 @@ RUN go mod download
2221

2322
ADD . .
2423

25-
RUN go mod vendor && /bin/operator-sdk generate k8s
24+
RUN /bin/operator-sdk generate k8s
2625

2726
# build the binary
2827
{% block build_binary -%}

0 commit comments

Comments
 (0)