Skip to content

util/must: avoid circular dependencies #107427

@erikgrinaker

Description

@erikgrinaker

Currently, must can't be used from packages that must itself depends on (e.g. util/log), due to circular depencies. If this is needed, we can solve it by dependency injection, where the necessary functions are injected into must global variables at runtime via init() calls. It isn't clear that we'll need it though, so let's not spend time on this until we do.

Jira issue: CRDB-30037

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-testingTesting tools and infrastructureC-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)T-testengTestEng Team

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions