-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vault Dependency Upgrades #10940
Vault Dependency Upgrades #10940
Conversation
@@ -159,7 +159,7 @@ func decodeBatchRequestItems(src interface{}, dst *[]BatchRequestItem) error { | |||
} else if casted, ok := v.(string); ok { | |||
(*dst)[i].Context = casted | |||
} else { | |||
errs.Errors = append(errs.Errors, fmt.Sprintf("'[%d].context' expected type 'string', got unconvertible type '%T'", i, item["context"])) | |||
errs.Errors = append(errs.Errors, fmt.Sprintf("'[%d].context' expected type 'string', got unconvertible type '%T', value: '%v'", i, item["context"], item["context"])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How come these changed in this PR? I'm not sure we want to be returning these as errors since they may get logged. Especially the plaintext one below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changed due to the upgrade in the map structure here: https://github.com/mitchellh/mapstructure/blob/07998cfd7ab2f7f7e5ddce402c4edf38317451eb/mapstructure_examples_test.go#L65
go.mod
Outdated
github.com/mitchellh/gox v1.0.1 | ||
github.com/mitchellh/mapstructure v1.3.3 | ||
github.com/mitchellh/go-testing-interface v1.14.2-0.20210217184823-a52172cd2f64 | ||
github.com/mitchellh/gox v0.4.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How come gox got downgraded?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch -- I think it had something to do with the versioning issue with go-testing-interface, but it was an unnecessary straggler dependency. Upgraded it back.
This is the same PR as: #10903