Skip to content

Commit

Permalink
enhance(dep): adds prune settings and dep check
Browse files Browse the repository at this point in the history
Signed-off-by: Ashish Ranjan <ashishranjan738@gmail.com>

This commit adds prune settings in Gopkg.toml which will allow removing unused vendor packages during dep ensure and adds `dep check` in travis which will allow catching dependency breaking PRs.
  • Loading branch information
ashishranjan738 committed Mar 17, 2019
1 parent f19346a commit 572a7df
Show file tree
Hide file tree
Showing 24,411 changed files with 142 additions and 10,821,314 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
262 changes: 131 additions & 131 deletions Gopkg.lock

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
# name = "github.com/x/y"
# version = "2.4.0"

[prune]
unused-packages = true
go-tests = true

[[constraint]]
name = "github.com/container-storage-interface/spec"
Expand Down
1 change: 1 addition & 0 deletions hack/verify-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ PKG_ROOT=$(git rev-parse --show-toplevel)
${PKG_ROOT}/hack/verify-gofmt.sh
${PKG_ROOT}/hack/verify-govet.sh
${PKG_ROOT}/hack/verify-golint.sh
${PKG_ROOT}/hack/verify-dep.sh
11 changes: 7 additions & 4 deletions ...st/images/metadata-concealment/Dockerfile → hack/verify-dep.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Copyright 2016 The Kubernetes Authors.
#!/bin/bash

# Copyright 2019 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -12,8 +14,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM scratch
set -euo pipefail

COPY check_metadata_concealment /
echo "Verifying dep check"
dep check
echo "No issue found"

ENTRYPOINT ["/check_metadata_concealment"]
46 changes: 0 additions & 46 deletions vendor/contrib.go.opencensus.io/exporter/ocagent/example_test.go

This file was deleted.

218 changes: 0 additions & 218 deletions vendor/contrib.go.opencensus.io/exporter/ocagent/mock_agent_test.go

This file was deleted.

Loading

0 comments on commit 572a7df

Please sign in to comment.