MCPcopy Create free account
hub / github.com/bufbuild/buf / withIsTarget

Method withIsTarget

private/bufpkg/bufmodule/module.go:197–197  ·  view source on GitHub ↗

withIsTarget returns a copy of the Module with the specified target value. Do not expose publicly! This should only be called by ModuleSet.WithTargetOpaqueIDs. Exposing this directly publicly can have unintended consequences - Modules have a parent ModuleSet, which is self-contained, and a copy of

(isTarget bool)

Source from the content-addressed store, hash-verified

195 // parent ModuleSet, which is self-contained, and a copy of a Module inside a ModuleSet
196 // that itself has the same ModuleSet will break the expected pattern of the references.
197 withIsTarget(isTarget bool) (Module, error)
198 isModule()
199}
200

Callers 1

WithTargetOpaqueIDsMethod · 0.65

Implementers 1

moduleprivate/bufpkg/bufmodule/module.go

Calls

no outgoing calls

Tested by

no test coverage detected