Skip to content

Embed sources at compile time #7

Description

@samber

It would be helpful to embed source code in binary, since the .Sources() getter read the sources at runtime, at location specified in the stack trace.

I don't see any developer-friendly way to do it, except by using an extra compilation step or codegen. 🙄

The best scenario would be to enable/disable it with a flag in the compilation line or with an environment variable.

Example:

OOPS_EMBED_SOURCES="none" // default
OOPS_EMBED_SOURCES="minimal"   // project
OOPS_EMBED_SOURCES="all"  // project + dependencies (very heavy!!)

Any idea ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions