Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Tidy ¶
func Tidy(ctx context.Context, fsys fs.FS, modRoot string, reg Registry, cueVers string) (*modfile.File, error)
Tidy evaluates all the requirements of the given main module, using the given registry to download requirements and returns a resolved and tidied module file. If there's no language version in the module file and cueVers is non-empty it will be used to populate the language version field.
Types ¶
type Registry ¶
type Registry interface { modrequirements.Registry modpkgload.Registry // ModuleVersions returns all the versions for the module with the // given path, which should contain a major version. ModuleVersions(ctx context.Context, mpath string) ([]string, error) }
Registry is modload's view of a module registry.
Click to show internal directories.
Click to hide internal directories.