axodotdev / cargo-dist

📦 shippable application packaging
https://axodotdev.github.io/cargo-dist/
Apache License 2.0
1.47k stars 66 forks source link

Feature: linkage fixtures to track changes #666

Open mistydemeo opened 9 months ago

mistydemeo commented 9 months ago

This is an interesting idea proposed by @ashleygwilliams.

We track linkage data in metadata stored after the build, which does give a historical timeline of linkage changes over time. What if we stored and used linkage data as a kind of snapshot like the insta snapshots we use for our own tests? CI builds could then flag if linkage has changed from the snapshots, providing important information to devs. It could even be used to cause builds to fail if desired in order to avoid possibly broken binaries.

Gankra commented 1 month ago

Some more discussion of potential ways to do this in #1249