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

Makefile: fix handling of non-existent *.eg.go files #49696

Merged
merged 1 commit into from
May 29, 2020

Conversation

petermattis
Copy link
Collaborator

When a bin/*.d file references an *.eg.go file, that file was
required to exist or be buildable by the Makefile. Any commit which
removed a *.eg.go file would violate this requirement causing the
build to fail until the offending bin/*.d file was removed. In order
to prevent this badness, a catchall %.eg.go rule is added which will
force the target dependent on the bin/%.d file to be rebuilt.

Fixes #49676

Release note: None

When a `bin/*.d` file references an `*.eg.go` file, that file was
required to exist or be buildable by the Makefile. Any commit which
removed a `*.eg.go` file would violate this requirement causing the
build to fail until the offending `bin/*.d` file was removed. In order
to prevent this badness, a catchall `%.eg.go` rule is added which will
force the target dependent on the `bin/%.d` file to be rebuilt.

Fixes cockroachdb#49676

Release note: None
@petermattis petermattis requested a review from knz May 29, 2020 14:04
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@petermattis
Copy link
Collaborator Author

Cc @yuzefovich

Copy link
Contributor

@knz knz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice catch

@petermattis
Copy link
Collaborator Author

TFTR!

bors r+

@craig
Copy link
Contributor

craig bot commented May 29, 2020

Build succeeded

@craig craig bot merged commit 6740c94 into cockroachdb:master May 29, 2020
@petermattis petermattis deleted the pmattis/execgen branch May 29, 2020 15:28
@yuzefovich
Copy link
Member

Thanks!

@jordanlewis
Copy link
Member

Thanks @petermattis

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.

build: something is off with EXECGEN_TARGETS and logictest-bins
5 participants