badger icon indicating copy to clipboard operation
badger copied to clipboard

x/net/trace causing DCE to be disabled

Open kruskall opened this issue 1 year ago • 1 comments

Describe the bug

x/net/trace import at https://github.com/hypermodeinc/badger/blob/a9a63e263d9aa6a82d8b640bc6396afc4696dd6b/y/event_log.go#L8 is causing DCE (deadcode elimination) to be disabled for any app depending on this module

To Reproduce

Steps to reproduce the behavior:

  1. build badger or an app depending on badger
  2. DCE is disabled

Expected behavior

DCE is enabled

Screenshots

If applicable, add screenshots to help explain your problem.

Environment

  • OS: [e.g. macOS, Windows, Ubuntu]
  • Language [e.g. AssemblyScript, Go]
  • Version [e.g. v0.xx]

Additional context

Add any other context about the problem here.

kruskall avatar Apr 09 '25 01:04 kruskall