Make sed macos compatible
Saves a backup file using a gitignored extension.
This commit is contained in:
parent
51dc39dae9
commit
822424459e
|
@ -45,7 +45,7 @@ format:
|
||||||
generate:
|
generate:
|
||||||
@echo "--> Running go generate"
|
@echo "--> Running go generate"
|
||||||
@go generate $(PACKAGES)
|
@go generate $(PACKAGES)
|
||||||
@sed -i -e 's|github.com/hashicorp/nomad/vendor/github.com/ugorji/go/codec|github.com/ugorji/go/codec|' nomad/structs/structs.generated.go
|
@sed -i.old -e 's|github.com/hashicorp/nomad/vendor/github.com/ugorji/go/codec|github.com/ugorji/go/codec|' nomad/structs/structs.generated.go
|
||||||
|
|
||||||
vet:
|
vet:
|
||||||
@go tool vet 2>/dev/null ; if [ $$? -eq 3 ]; then \
|
@go tool vet 2>/dev/null ; if [ $$? -eq 3 ]; then \
|
||||||
|
|
Loading…
Reference in New Issue