package modconv

import "cmd/go/internal/modconv"

Index

Variables

var Converters = map[string]func(string, []byte) (*modfile.File, error){
	"GLOCKFILE":          ParseGLOCKFILE,
	"Godeps/Godeps.json": ParseGodepsJSON,
	"Gopkg.lock":         ParseGopkgLock,
	"dependencies.tsv":   ParseDependenciesTSV,
	"glide.lock":         ParseGlideLock,
	"vendor.conf":        ParseVendorConf,
	"vendor.yml":         ParseVendorYML,
	"vendor/manifest":    ParseVendorManifest,
	"vendor/vendor.json": ParseVendorJSON,
}

Functions

func ConvertLegacyConfig

func ConvertLegacyConfig(f *modfile.File, file string, data []byte, queryPackage func(path, rev string) (module.Version, error)) error

ConvertLegacyConfig converts legacy config to modfile. The file argument is slash-delimited.

func ParseDependenciesTSV

func ParseDependenciesTSV(file string, data []byte) (*modfile.File, error)

func ParseGLOCKFILE

func ParseGLOCKFILE(file string, data []byte) (*modfile.File, error)

func ParseGlideLock

func ParseGlideLock(file string, data []byte) (*modfile.File, error)

func ParseGodepsJSON

func ParseGodepsJSON(file string, data []byte) (*modfile.File, error)

func ParseGopkgLock

func ParseGopkgLock(file string, data []byte) (*modfile.File, error)

func ParseVendorConf

func ParseVendorConf(file string, data []byte) (*modfile.File, error)

func ParseVendorJSON

func ParseVendorJSON(file string, data []byte) (*modfile.File, error)

func ParseVendorManifest

func ParseVendorManifest(file string, data []byte) (*modfile.File, error)

func ParseVendorYML

func ParseVendorYML(file string, data []byte) (*modfile.File, error)

Source Files

convert.go dep.go glide.go glock.go godeps.go modconv.go tsv.go vconf.go vjson.go vmanifest.go vyml.go

Version
v1.20.2
Published
Mar 3, 2023
Platform
linux/amd64
Imports
14 packages
Last checked
13 minutes ago

Tools for package owners.