Skip to content

Commit f611b4e

Browse files
authored
Merge pull request #678 from q384566678/update-go-multierror
Godeps: update hashicorp/go-multierror
2 parents 830bce2 + 00f6e86 commit f611b4e

File tree

8 files changed

+37
-13
lines changed

8 files changed

+37
-13
lines changed

Godeps/Godeps.json

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

validate/validate_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func TestJSONSchema(t *testing.T) {
4343
}{
4444
{
4545
config: &rspec.Spec{},
46-
error: "1 error occurred:\n\n* Version string empty\nRefer to: https://github.com/opencontainers/runtime-spec/blob/v1.0.1/config.md#specification-version",
46+
error: "1 error occurred:\n\t* Version string empty\nRefer to: https://github.com/opencontainers/runtime-spec/blob/v1.0.1/config.md#specification-version\n\n",
4747
},
4848
{
4949
config: &rspec.Spec{
@@ -128,7 +128,7 @@ func TestJSONSchema(t *testing.T) {
128128
},
129129
},
130130
},
131-
error: "2 errors occurred:\n\n* linux.namespaces.0: Must validate at least one schema (anyOf)\n* linux.namespaces.0.type: linux.namespaces.0.type must be one of the following: \"mount\", \"pid\", \"network\", \"uts\", \"ipc\", \"user\", \"cgroup\"",
131+
error: "2 errors occurred:\n\t* linux.namespaces.0: Must validate at least one schema (anyOf)\n\t* linux.namespaces.0.type: linux.namespaces.0.type must be one of the following: \"mount\", \"pid\", \"network\", \"uts\", \"ipc\", \"user\", \"cgroup\"\n\n",
132132
},
133133
{
134134
config: &rspec.Spec{
@@ -716,11 +716,11 @@ func TestCheckMandatoryFields(t *testing.T) {
716716
}{
717717
{
718718
config: &rspec.Spec{},
719-
error: "1 error occurred:\n\n* 'Spec.Version' should not be empty",
719+
error: "1 error occurred:\n\t* 'Spec.Version' should not be empty\n\n",
720720
},
721721
{
722722
config: nil,
723-
error: "1 error occurred:\n\n* Spec can't be nil",
723+
error: "1 error occurred:\n\t* Spec can't be nil\n\n",
724724
},
725725
{
726726
config: &rspec.Spec{
@@ -733,7 +733,7 @@ func TestCheckMandatoryFields(t *testing.T) {
733733
Version: "1.0.0",
734734
Root: &rspec.Root{},
735735
},
736-
error: "1 error occurred:\n\n* 'Root.Path' should not be empty",
736+
error: "1 error occurred:\n\t* 'Root.Path' should not be empty\n\n",
737737
},
738738
} {
739739
t.Run(tt.error, func(t *testing.T) {

vendor/github.com/hashicorp/go-multierror/.travis.yml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/hashicorp/go-multierror/format.go

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/hashicorp/go-multierror/go.mod

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/hashicorp/go-multierror/go.sum

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/hashicorp/go-multierror/multierror.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/hashicorp/go-multierror/sort.go

Lines changed: 16 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)