Skip to content

Add a "require" list #110

@abscondment

Description

@abscondment

This seems like a natural extension to the current allowlist and denylist implementation.

Use cases I've encountered recently: ensure every main package in this project imports...

  • "go.uber.org/automaxprocs" to adjust GOMAXPROCS based on CPU quota (link)
  • "crypto/tls/fipsonly" to force tls into FIPS mode at build time (link)

I'm sure other folks will find other uses.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions