1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-11-23 22:34:47 +02:00

Run go generate during make and make sure that generated files are in sync in CI (#101)

* Run go generate in the precommit target

So we should always get an updated version of a file generated by a
stringer utility.

* Update the generated file

* Make CI to fail if working tree has uncommited changes

The uncommitted changes may come from the golang linter (that formats
our code among other things) and from stringer (when updated some
enumeration).
This commit is contained in:
Krzesimir Nowak
2019-08-22 20:16:51 +02:00
committed by rghetia
parent 8e7e1fd0a9
commit 8d93efab11
3 changed files with 21 additions and 19 deletions

View File

@@ -5,4 +5,5 @@ package tools
import (
_ "github.com/client9/misspell/cmd/misspell"
_ "github.com/golangci/golangci-lint/cmd/golangci-lint"
_ "golang.org/x/tools/cmd/stringer"
)