Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bufbuild/buf
/ IsImport
Method
IsImport
private/bufpkg/bufimage/bufimage.go:67–67 ·
view source on GitHub ↗
IsImport returns true if this file is an import.
()
Source
from the content-addressed store, hash-verified
65
Imports() ([]string, error)
66
// IsImport returns true if this file is an import.
67
IsImport() bool
68
69
isImageFileInfo()
70
}
Callers
15
filterImageWithConfigsNotInAgainstImages
Function · 0.65
run
Function · 0.65
newExternalImageFileInfo
Function · 0.65
TestRunPackageNoImportCycle
Function · 0.65
imageToProtoFileDescriptor
Function · 0.65
ignoreFileLocation
Function · 0.65
breakingRuleHandlerForFile
Function · 0.65
handleLintPackageNoImportCycle
Function · 0.65
NewLintFilesRuleHandler
Function · 0.65
ImageFileInfosWithOnlyTargetsAndTargetImports
Function · 0.65
ImageFileWithIsImport
Function · 0.65
CloneImageFile
Function · 0.65
Implementers
3
imageFile
private/bufpkg/bufimage/image_file.go
moduleImageFileInfo
private/bufpkg/bufimage/module_image_f
wellKnownTypeImageFileInfo
private/bufpkg/bufimage/well_known_typ
Calls
no outgoing calls
Tested by
3
TestRunPackageNoImportCycle
Function · 0.52
testGetImageImportPaths
Function · 0.52
testImageWithExcludedFilePaths
Function · 0.52