Skip to content

Commit 51a8c95

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

File tree

407 files changed

+250676
-16
lines changed

Some content is hidden

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

407 files changed

+250676
-16
lines changed

Makefile

Lines changed: 7 additions & 8 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
16-
IMAGE_PREFIX=compose-spec/conformance-tests-
18+
IMAGE_PREFIX=composespec/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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
FROM golang:1.14
1616

1717
WORKDIR /go/src
18-
RUN go mod init github.com/compose-spec/conformance-tests
1918

2019
ARG GOLANGCILINT_VERSION=v1.23.8
2120
RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin ${GOLANGCILINT_VERSION}
22-
RUN go get -u github.com/kunalkushwaha/ltag
21+
RUN go get -v -u github.com/kunalkushwaha/ltag && rm -rf /go/src/github.com/kunalkushwaha
2322

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

client/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
FROM golang:1.14 AS dev
1616
WORKDIR /go/src
1717
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 .
18+
RUN CGO_ENABLED=0 GOFLAGS=-mod=vendor go build -o /client server/main.go
2019

2120
FROM scratch AS run
2221
COPY --from=dev client /

scripts/validate/fileheader

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ fi
2525

2626
BASEPATH="${1-}"
2727

28-
ltag -t "${BASEPATH}scripts/validate/template" --excludes "validate" --check -v
28+
ltag -t "${BASEPATH}scripts/validate/template" --excludes "validate vendor" --check -v

server/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
FROM golang:1.14 AS dev
1616
WORKDIR /go/src
1717
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 .
18+
RUN CGO_ENABLED=0 GOFLAGS=-mod=vendor go build -o /server server/main.go
2019

2120
FROM scratch AS run
2221
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)