forked from intel/pmem-csi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introducing go modules for vendor dependency tracking.
Result of below set of commands: go mod init go get k8s.io/[email protected] go get k8s.io/<k8s-family-projects>@kubernetes-1.16.2 go mod tidy go mod vendor The way package paths returned by v1.13 'go list' is different from previous go versions. Made changes to rest_runtime target according to this. TODO: We can drop Gopkg.lock file, but 'test_vendor_bom' make target uses this file to retrieve the package list to validate vendor tree. One should replace this check with go module equivalent.
- Loading branch information
Showing
218 changed files
with
4,046 additions
and
144,504 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ | |
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
GO=GOOS=linux GO111MODULE=on GOFLAGS=-mod=vendor go | ||
IMPORT_PATH=github.com/intel/pmem-csi | ||
CMDS=pmem-csi-driver pmem-vgm pmem-ns-init | ||
TEST_CMDS=$(addsuffix -test,$(CMDS)) | ||
|
@@ -58,21 +59,21 @@ all: build | |
# Build all binaries, including tests. | ||
# Must use the workaround from https://github.com/golang/go/issues/15513 | ||
build: $(CMDS) $(TEST_CMDS) | ||
go test -run none ./pkg/... ./test/e2e | ||
$(GO) test -run none ./pkg/... ./test/e2e | ||
|
||
# "make test" runs a variety of fast tests, including building all source code. | ||
# More tests are added elsewhere in this Makefile and test/test.make. | ||
test: build | ||
|
||
# Build production binaries. | ||
$(CMDS): | ||
GOOS=linux go build -ldflags '-X github.com/intel/pmem-csi/pkg/[email protected]=${VERSION}' -a -o ${OUTPUT_DIR}/$@ ./cmd/$@ | ||
$(GO) build -ldflags '-X github.com/intel/pmem-csi/pkg/[email protected]=${VERSION}' -a -o ${OUTPUT_DIR}/$@ ./cmd/$@ | ||
|
||
# Build a test binary that can be used instead of the normal one with | ||
# additional "-run" parameters. In contrast to the normal it then also | ||
# supports -test.coverprofile. | ||
$(TEST_CMDS): %-test: | ||
GOOS=linux go test --cover -covermode=atomic -c -coverpkg=./pkg/... -ldflags '-X github.com/intel/pmem-csi/pkg/$*.version=${VERSION}' -o ${OUTPUT_DIR}/$@ ./cmd/$* | ||
$(GO) test --cover -covermode=atomic -c -coverpkg=./pkg/... -ldflags '-X github.com/intel/pmem-csi/pkg/$*.version=${VERSION}' -o ${OUTPUT_DIR}/$@ ./cmd/$* | ||
|
||
# The default is to refresh the base image once a day when building repeatedly. | ||
# This is achieved by passing a fake variable that changes its value once per day. | ||
|
@@ -111,7 +112,7 @@ print-image-version: | |
@ echo "$(IMAGE_VERSION)" | ||
|
||
clean: | ||
go clean -r -x | ||
$(GO) clean -r -x ./cmd/... | ||
-rm -rf $(OUTPUT_DIR) | ||
|
||
.PHONY: all build test clean $(CMDS) $(TEST_CMDS) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
module github.com/intel/pmem-csi | ||
|
||
go 1.13 | ||
|
||
require ( | ||
github.com/Microsoft/go-winio v0.4.14 // indirect | ||
github.com/beorn7/perks v1.0.1 // indirect | ||
github.com/container-storage-interface/spec v1.2.0 | ||
github.com/docker/go-units v0.4.0 | ||
github.com/docker/spdystream v0.0.0-20181023171402-6480d4af844c // indirect | ||
github.com/evanphx/json-patch v4.5.0+incompatible // indirect | ||
github.com/gogo/protobuf v1.3.1 // indirect | ||
github.com/golang/groupcache v0.0.0-20191027212112-611e8accdfc9 // indirect | ||
github.com/golang/protobuf v1.3.2 | ||
github.com/google/go-cmp v0.3.1 // indirect | ||
github.com/google/uuid v1.1.1 | ||
github.com/googleapis/gnostic v0.3.1 // indirect | ||
github.com/hashicorp/golang-lru v0.5.3 // indirect | ||
github.com/imdario/mergo v0.3.8 // indirect | ||
github.com/json-iterator/go v1.1.8-0.20191012130704-03217c3e9766 // indirect | ||
github.com/kubernetes-csi/csi-lib-utils v0.6.1 | ||
github.com/kubernetes-csi/csi-test v1.1.2-0.20191016154743-6931aedb3df0 | ||
github.com/onsi/ginkgo v1.10.2 | ||
github.com/onsi/gomega v1.7.0 | ||
github.com/pkg/errors v0.8.1 | ||
github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4 // indirect | ||
github.com/prometheus/common v0.4.1 // indirect | ||
github.com/prometheus/procfs v0.0.5 // indirect | ||
github.com/spf13/pflag v1.0.5 // indirect | ||
github.com/stretchr/testify v1.4.0 // indirect | ||
go.uber.org/atomic v1.4.0 // indirect | ||
go.uber.org/multierr v1.2.0 // indirect | ||
go.uber.org/zap v1.11.0 // indirect | ||
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550 // indirect | ||
golang.org/x/net v0.0.0-20191027233614-53de4c7853b5 | ||
golang.org/x/sys v0.0.0-20191105231009-c1f44814a5cd // indirect | ||
golang.org/x/time v0.0.0-20191024005414-555d28b269f0 // indirect | ||
google.golang.org/appengine v1.6.5 // indirect | ||
google.golang.org/genproto v0.0.0-20191009194640-548a555dbc03 // indirect | ||
google.golang.org/grpc v1.24.0 | ||
gopkg.in/inf.v0 v0.9.1 // indirect | ||
gopkg.in/square/go-jose.v2 v2.4.0 // indirect | ||
k8s.io/api v0.0.0 | ||
k8s.io/apimachinery v0.0.0 | ||
k8s.io/client-go v0.0.0 | ||
k8s.io/component-base v0.0.0 | ||
k8s.io/klog v1.0.0 | ||
k8s.io/kube-openapi v0.0.0-20190918143330-0270cf2f1c1d // indirect | ||
k8s.io/kubernetes v1.17.0-alpha.0.0.20191109043140-c3f2a6524ed8 | ||
k8s.io/utils v0.0.0-20190801114015-581e00157fb1 | ||
) | ||
|
||
replace ( | ||
k8s.io/api => k8s.io/api v0.0.0-20191016110408-35e52d86657a | ||
k8s.io/apiextensions-apiserver => k8s.io/apiextensions-apiserver v0.0.0-20191016113550-5357c4baaf65 | ||
k8s.io/apimachinery => k8s.io/apimachinery v0.0.0-20191004115801-a2eda9f80ab8 | ||
k8s.io/apiserver => k8s.io/apiserver v0.0.0-20191016112112-5190913f932d | ||
k8s.io/cli-runtime => k8s.io/cli-runtime v0.0.0-20191016114015-74ad18325ed5 | ||
k8s.io/client-go => k8s.io/client-go v0.0.0-20191016111102-bec269661e48 | ||
k8s.io/cloud-provider => k8s.io/cloud-provider v0.0.0-20191016115326-20453efc2458 | ||
k8s.io/cluster-bootstrap => k8s.io/cluster-bootstrap v0.0.0-20191016115129-c07a134afb42 | ||
k8s.io/code-generator => k8s.io/code-generator v0.0.0-20191004115455-8e001e5d1894 | ||
k8s.io/component-base => k8s.io/component-base v0.0.0-20191016111319-039242c015a9 | ||
k8s.io/cri-api => k8s.io/cri-api v0.0.0-20190828162817-608eb1dad4ac | ||
k8s.io/csi-translation-lib => k8s.io/csi-translation-lib v0.0.0-20191016115521-756ffa5af0bd | ||
k8s.io/kube-aggregator => k8s.io/kube-aggregator v0.0.0-20191016112429-9587704a8ad4 | ||
k8s.io/kube-controller-manager => k8s.io/kube-controller-manager v0.0.0-20191016114939-2b2b218dc1df | ||
k8s.io/kube-proxy => k8s.io/kube-proxy v0.0.0-20191016114407-2e83b6f20229 | ||
k8s.io/kube-scheduler => k8s.io/kube-scheduler v0.0.0-20191016114748-65049c67a58b | ||
k8s.io/kubectl => k8s.io/kubectl v0.0.0-20191016120415-2ed914427d51 | ||
k8s.io/kubelet => k8s.io/kubelet v0.0.0-20191016114556-7841ed97f1b2 | ||
k8s.io/legacy-cloud-providers => k8s.io/legacy-cloud-providers v0.0.0-20191016115753-cf0698c3a16b | ||
k8s.io/metrics => k8s.io/metrics v0.0.0-20191016113814-3b1a734dba6e | ||
k8s.io/sample-apiserver => k8s.io/sample-apiserver v0.0.0-20191016112829-06bb3c9d77c9 | ||
) |
Oops, something went wrong.