Skip to content
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

Some makefile fixes #442

Merged
merged 2 commits into from
Jan 24, 2020
Merged

Conversation

krnowak
Copy link
Member

@krnowak krnowak commented Jan 24, 2020

This fixes a dependency issue (generate target should depend on stringer, not lint target) and reorders the targets within precommit (so we generate files and build the code before doing linting, so we can get much nicer errors about syntax errors from the compiler)

Generated files may require some formatting that happens during
linting. Also missing generated files may result in linter failures.

Building can shake out any syntax/semantic errors and report them in a
much nicer way than the linter does. Which is exactly the reason the
build was running before linters before the Makefile simplification.
Lint target does not use the stringer utility - it is being used by go
generate.
@lizthegrey lizthegrey merged commit 0278559 into open-telemetry:master Jan 24, 2020
@krnowak krnowak deleted the krnowak/makefile-fixes branch January 24, 2020 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants