DataDog / orchestrion

Automatic compile-time instrumentation of Go code
http://datadoghq.dev/orchestrion/
Apache License 2.0
159 stars 5 forks source link

[BUG] Build fails with `-cover` / `-covermode atomic` #215

Closed RomainMuller closed 1 month ago

RomainMuller commented 2 months ago

Version of orchestrion

v0.7.x

Describe what happened:

When building with -cover / -covermode=atomic (possibly also with other cover modes), the link stage fails with a fingerprint mismatch.

This is because the build ID addendum does not get properly tainted with cache flags. But once this is fixed, the compilation fails on coverage-instrumented files because all imports appear to be removed from them.