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

Method IsTarget

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

IsTarget returns true if the Module is a targeted Module. Modules are either targets or non-targets. Modules directly returned from a ModuleProvider will always be marked as targets. Modules created file ModuleSetBuilders may or may not be marked as targets. Files within a targeted Module can be t

()

Source from the content-addressed store, hash-verified

146 // when path filtering occurs, but no paths given matched any paths in the Module, but
147 // the Module itself was targeted.
148 IsTarget() bool
149
150 // IsLocal return true if the Module is a local Module.
151 //

Callers 10

WalkFileInfosMethod · 0.65
BuildMethod · 0.65
ModuleSetTargetModulesFunction · 0.65
printModuleFunction · 0.65
runIgnorePathChecksMethod · 0.65
testBasicFunction · 0.65

Implementers 1

moduleprivate/bufpkg/bufmodule/module.go

Calls

no outgoing calls

Tested by 2

testBasicFunction · 0.52