Merge pull request #7827 from hashicorp/deps-go-msgpack-v1.1.5
Harmonize go-msgpack/codec/codecgen
This commit is contained in:
commit
18ac17b189
|
@ -175,11 +175,7 @@ deps: ## Install build and development dependencies
|
|||
GO111MODULE=on go get -u gotest.tools/gotestsum
|
||||
GO111MODULE=on go get -u github.com/fatih/hclfmt
|
||||
GO111MODULE=on go get -u github.com/golang/protobuf/protoc-gen-go@v1.3.4
|
||||
|
||||
# The tag here must correspoond to codec version nomad uses, e.g. v1.1.5.
|
||||
# Though, v1.1.5 codecgen has a bug in code generator, so using a specific sha
|
||||
# here instead.
|
||||
GO111MODULE=on go get -u github.com/hashicorp/go-msgpack/codec/codecgen@f51b5189210768cf0d476580cf287620374d4f02
|
||||
GO111MODULE=on go get -u github.com/hashicorp/go-msgpack/codec/codecgen@v1.1.5
|
||||
|
||||
.PHONY: lint-deps
|
||||
lint-deps: ## Install linter dependencies
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
codecgen -d 102 -t codegen_generated -o structs.generated.go structs.go
|
||||
sed -i'' -e 's|"github.com/ugorji/go/codec|"github.com/hashicorp/go-msgpack/codec|g' structs.generated.go
|
|
@ -1,6 +1,6 @@
|
|||
package structs
|
||||
|
||||
//go:generate ./generate.sh
|
||||
//go:generate codecgen -c github.com/hashicorp/go-msgpack/codec -d 102 -t codegen_generated -o structs.generated.go structs.go
|
||||
|
||||
import (
|
||||
"errors"
|
||||
|
|
Loading…
Reference in a new issue