Skip to content

Commit b86b39e

Browse files
committed
Add final patch verification immediately before compilation
This ensures we catch any unexpected patch overwrites right before the compile step, providing maximum confidence that our memory fixes are actually being compiled into the binary.
1 parent db812ea commit b86b39e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ RUN echo "=== Verifying patches after generate/vendor steps ===" && \
4949
grep -q "BEYLA_MAX_CONCURRENT_ELF" vendor/go.opentelemetry.io/obi/pkg/components/discover/typer.go && \
5050
echo "✅ Patches still present after generate/vendor steps" || (echo "❌ Patches overwritten by generate/vendor steps" && exit 1)
5151

52+
RUN echo "=== FINAL VERIFICATION: Verifying patches immediately before compilation ===" && \
53+
grep -q "BEYLA_MAX_CONCURRENT_ELF" vendor/go.opentelemetry.io/obi/pkg/components/discover/typer.go && \
54+
echo "✅ CONFIRMED: Patches present, proceeding with compilation" || (echo "❌ CRITICAL: Patches missing before compilation!" && exit 1)
55+
5256
RUN make compile
5357

5458
# Create final image from minimal + built binary

0 commit comments

Comments
 (0)