Skip to content

Commit c06ed03

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

File tree

406 files changed

+250670
-12
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

+250670
-12
lines changed

Makefile

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,20 @@
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
19-
2020
.PHONY: check
2121
check: ## Checks the environment before running any command
2222
@[[ $(shell docker ps -aq | wc -l) == 0 ]] || \
2323
(echo "You have to remove any containers before running the tests! Please run 'docker rm -f \`docker ps -aq\`' to remove all the existing containers." && exit 1)
2424

2525
.PHONY: images
2626
images: ## Build the test images
27-
docker build server -t $(IMAGE_PREFIX)server
28-
docker build client -t $(IMAGE_PREFIX)client
27+
docker build . -f server/Dockerfile -t $(IMAGE_PREFIX)server
28+
docker build . -f client/Dockerfile -t $(IMAGE_PREFIX)client
2929

3030
.PHONY: test
3131
test: check images ## Run tests
@@ -47,9 +47,6 @@ lint: build-validate-image
4747
check-license: build-validate-image
4848
docker run --rm $(IMAGE_PREFIX)validate bash -c "./scripts/validate/fileheader"
4949

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

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 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 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)