Documentation ¶
Index ¶
- Variables
- func FilterVersions(dependencies []module.Version, paths ...string) []module.Version
- func LocatePath(ctx context.Context, cacheStorage cache.Storage, src string, ...) (path string, err error)
- func ParseAt(path string) (*modfile.File, error)
- func ResolveDependencies(f *modfile.File) ([]module.Version, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrGoModNotFound = errors.New("go.mod not found")
ErrGoModNotFound returned when go.mod file cannot be found for an app.
Functions ¶
func FilterVersions ¶
FilterVersions filters dependencies under require section by their paths.
func LocatePath ¶
func LocatePath(ctx context.Context, cacheStorage cache.Storage, src string, pkg module.Version) (path string, err error)
LocatePath locates pkg's absolute path managed by 'go mod' on the local filesystem.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.