Skip to content

stop using go:linkname across modules #546

@adonovan

Description

@adonovan

go1.23 will start to enforce "two-party consent" on linkname: that is, you can use it to share variables between packages controlled by the same author (in practice: within the module), but not to punch through the drywall of other modules.

Starlark-go uses cross-module linkname for two purposes:

  1. the profiler uses nanotime (see comments in the code for why alternatives are inferior). This tstime/mono: remove package tailscale/tailscale#8839 (comment) comment suggests an efficient portable alternative.
  2. lib/proto pokes detrand=false into the google3 protobuf formatter to defeat its annoying intentional nondeterminism. The solution there is to (ugh) fork the formatter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions