1
0

Depend explicitly on go-msgpack v1.1.5 (#13693)

This commit is contained in:
Nick Cabatoff 2022-01-19 10:32:19 -05:00 committed by GitHub
parent b14f1edadd
commit a888a54308
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 1 deletions

2
go.mod
View File

@ -65,6 +65,7 @@ require (
github.com/hashicorp/go-hclog v1.0.0
github.com/hashicorp/go-kms-wrapping v0.6.8
github.com/hashicorp/go-memdb v1.3.2
github.com/hashicorp/go-msgpack v1.1.5
github.com/hashicorp/go-multierror v1.1.1
github.com/hashicorp/go-raftchunking v0.6.3-0.20191002164813-7e9e8525653a
github.com/hashicorp/go-retryablehttp v0.7.0
@ -275,7 +276,6 @@ require (
github.com/hashicorp/cronexpr v1.1.0 // indirect
github.com/hashicorp/go-immutable-radix v1.3.1 // indirect
github.com/hashicorp/go-kms-wrapping/entropy v0.1.0 // indirect
github.com/hashicorp/go-msgpack v1.1.5 // indirect
github.com/hashicorp/go-plugin v1.4.3 // indirect
github.com/hashicorp/go-slug v0.7.0 // indirect
github.com/hashicorp/go-tfe v0.20.0 // indirect

10
physical/raft/msgpack.go Normal file
View File

@ -0,0 +1,10 @@
package raft
// If we downgrade msgpack from v1.1.5 to v0.5.5, everything will still
// work, but any pre-existing raft clusters will break on upgrade.
// This file exists so that the Vault project has an explicit dependency
// on the library, which allows us to pin the version in go.mod.
import (
_ "github.com/hashicorp/go-msgpack/codec"
)