optincheck

package
v0.32.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package optincheck is a build-graph canary. It contains no production code and exists only so its test can observe something no test inside a provider plugin can: what the nexuscreds registry looks like in a binary that links the whole plugin set and nothing else.

A provider plugin's own test binary blank-imports pkg/nexuscreds/googleadc, because its Vertex tests open "google-adc" by name. That blank import makes the registry non-empty for every test in that binary, so the assertion this package makes — that merely linking the plugins registers NOTHING — is unobservable from there, in the in-package and the _test external package alike. A separate package with its own test binary is the only place the question can be asked.

It sits beside allplugins rather than beside any one provider because the invariant is about the plugin set as a whole: a plugin added next year that pulls in a registering package breaks it just as surely as gemini or anthropic would, and a per-provider canary would not notice.

It is under internal/ because nothing should ever import it. Its whole value is the import graph it does not have.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL