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

Make sure rerun/rerun_py/re_viewer build info is updated on each build #2087

Merged
merged 8 commits into from May 12, 2023

Conversation

emilk
Copy link
Member

@emilk emilk commented May 11, 2023

What

Closes #2086
Maybe closes #1209

I generalized the rebuild-detection from re_web_viewer_server and reused it for other crates to ensure we generate new build info (e.g. the --version string) each time a crate is rebuilt. I also improved this code a bit, removing duplicate files from the output (I don't know if this was a problem, but can't hurt).

I also fixed a bug in the re_web_viewer_server build.rs that caused that crate to always be rebuilt, even if nothing had changed. This was because we did cargo:rerun-if-env-changed on a file that was no longer there, web_viewer/favicon.ico (should have been web_viewer/favicon.svg). I have now protected against future mishaps like that.

Checklist

PR Build Summary: https://build.rerun.io/pr/2087

@emilk emilk marked this pull request as ready for review May 11, 2023 13:39
@emilk emilk added the 🧑‍💻 dev experience developer experience (excluding CI) label May 11, 2023
@teh-cmc teh-cmc self-requested a review May 12, 2023 07:36
@emilk emilk merged commit 9de1c5a into main May 12, 2023
15 checks passed
@emilk emilk deleted the emilk/update-build-info-on-each-build branch May 12, 2023 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🧑‍💻 dev experience developer experience (excluding CI)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

version string not updated when just a dependency changes Incremental web-build is broken on windows
2 participants