Skip to content

Commit d684d51

Browse files
committed
Add Go modules to vendor/
Signed-off-by: Christopher Crone <[email protected]>
1 parent 96a7da4 commit d684d51

File tree

406 files changed

+250674
-11
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

406 files changed

+250674
-11
lines changed

Makefile

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
.DEFAULT_GOAL := help
16+
1517
PACKAGE=github.com/compose-spec/conformance-tests
1618
IMAGE_PREFIX=compose-spec/conformance-tests-
1719

18-
.DEFAULT_GOAL := help
20+
GOFLAGS=-mod=vendor
1921

2022
.PHONY: check
2123
check: ## Checks the environment before running any command
@@ -24,12 +26,12 @@ check: ## Checks the environment before running any command
2426

2527
.PHONY: images
2628
images: ## Build the test images
27-
docker build server -t $(IMAGE_PREFIX)server
28-
docker build client -t $(IMAGE_PREFIX)client
29+
docker build . -f server/Dockerfile -t $(IMAGE_PREFIX)server
30+
docker build . -f client/Dockerfile -t $(IMAGE_PREFIX)client
2931

3032
.PHONY: test
3133
test: check images ## Run tests
32-
GOPRIVATE=$(PACKAGE) go test ./... -v
34+
GOPRIVATE=$(PACKAGE) GOFLAGS=$(GOFLAGS) go test ./... -v
3335

3436
.PHONY: fmt
3537
fmt: ## Format go files
@@ -47,9 +49,6 @@ lint: build-validate-image
4749
check-license: build-validate-image
4850
docker run --rm $(IMAGE_PREFIX)validate bash -c "./scripts/validate/fileheader"
4951

50-
.PHONY: validate
51-
validate: lint check-license
52-
5352
.PHONY: help
5453
help:
5554
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'

ci/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,5 @@ ARG GOLANGCILINT_VERSION=v1.23.8
2121
RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin ${GOLANGCILINT_VERSION}
2222
RUN go get -u github.com/kunalkushwaha/ltag
2323

24+
ENV GOFLAGS=-mod=vendor
2425
COPY . /go/src

client/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414

1515
FROM golang:1.14 AS dev
1616
WORKDIR /go/src
17+
RUN go mod init github.com/compose-spec/conformance-tests
1718
COPY . .
18-
RUN go mod init github.com/compose-spec/conformance-tests/client
19-
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /client .
19+
RUN CGO_ENABLED=0 GOFLAGS=-mod=vendor go build -o /client server/main.go
2020

2121
FROM scratch AS run
2222
COPY --from=dev client /

server/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414

1515
FROM golang:1.14 AS dev
1616
WORKDIR /go/src
17+
RUN go mod init github.com/compose-spec/conformance-tests
1718
COPY . .
18-
RUN go mod init github.com/compose-spec/conformance-tests/server
19-
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /server .
19+
RUN CGO_ENABLED=0 GOFLAGS=-mod=vendor go build -o /server server/main.go
2020

2121
FROM scratch AS run
2222
COPY --from=dev server /

vendor/github.com/google/go-cmp/LICENSE

Lines changed: 27 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)