Skip to content

Commit f05e4e8

Browse files
author
Evan Lezar
committed
Merge branch 'fix-go-install' into 'master'
Move pkg to cmd/nvidia-container-toolkit See merge request nvidia/container-toolkit/container-toolkit!32
2 parents a02f7f8 + 14cd7c1 commit f05e4e8

File tree

19 files changed

+1088
-82
lines changed

19 files changed

+1088
-82
lines changed

.gitlab-ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ unit_test:
6666
script:
6767
- make test
6868

69+
coverage:
70+
<<: *tests-setup
71+
stage: tests
72+
script:
73+
- make coverage
74+
6975
fmt:
7076
<<: *tests-setup
7177
stage: tests

Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,16 @@ LIB_VERSION := 1.5.0
2121
LIB_TAG ?=
2222

2323
GOLANG_VERSION := 1.16.3
24-
GOLANG_PKG_PATH := github.com/NVIDIA/nvidia-container-toolkit/pkg
24+
MODULE := github.com/NVIDIA/nvidia-container-toolkit
2525

2626
# By default run all native docker-based targets
2727
docker-native:
2828
include $(CURDIR)/docker/docker.mk
2929

3030
binary:
31-
go build -ldflags "-s -w" -o "$(LIB_NAME)" $(GOLANG_PKG_PATH)
31+
go build -ldflags "-s -w" -o "$(LIB_NAME)" $(MODULE)/cmd/$(LIB_NAME)
3232

3333
# Define the check targets for the Golang codebase
34-
MODULE := .
3534
.PHONY: check fmt assert-fmt ineffassign lint misspell vet
3635
check: assert-fmt lint misspell vet
3736
fmt:
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ go 1.14
44

55
require (
66
github.com/BurntSushi/toml v0.3.1
7-
github.com/stretchr/testify v1.6.0
7+
github.com/stretchr/testify v1.7.0
88
golang.org/x/mod v0.3.0
99
)

go.sum

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=
22
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
3-
github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
43
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
5-
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
64
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
75
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
8-
github.com/stretchr/testify v1.6.0 h1:jlIyCplCJFULU/01vCkhKuTyc3OorI3bJFuw6obfgho=
9-
github.com/stretchr/testify v1.6.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
6+
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
107
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
118
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
129
golang.org/x/mod v0.3.0 h1:RM4zey1++hCTbCVQfnWeKs9/IEsaBLA8vTkd0WVtmH4=

0 commit comments

Comments
 (0)