Skip to content

Don't overwrite OUT_DIR in build.rs #259

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

Merged
merged 1 commit into from
Jun 25, 2025
Merged

Don't overwrite OUT_DIR in build.rs #259

merged 1 commit into from
Jun 25, 2025

Conversation

pka
Copy link
Member

@pka pka commented May 24, 2025

Adressing #254

Since the Protobuf generation function in build.rs is only called when vector_tile.rs doesn't exists, it is effectively never called in a regular build. I'd like to leave build.rs in the source tree and at least OUT_DIR is not overwritten anymore.

@pka pka changed the title Overwrite OUT_DIR only in dev builds Don't overwrite OUT_DIR in build.rs May 24, 2025
@nyurik
Copy link
Member

nyurik commented Jun 14, 2025

one thing i could never understand is why we would ever want to hack OUT_DIR to output something that is clearly temporary to be checked in. Compiling a protobuf file, esp as simple and well studied as the one used for mvt should not result in a checked-in file - but rather use a standard out_dir on every build, conditional on the .proto file not changing

@pka pka merged commit 3db91b6 into georust:main Jun 25, 2025
1 check passed
@pka pka deleted the protoc branch June 26, 2025 06:10
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.

2 participants