golang.org/x/mod/modfile.Require.Mod (field)

32 uses

	golang.org/x/mod/modfile (current package)
		rule.go#L121: 	Mod      module.Version
		rule.go#L132: 	r.Mod.Version = v
		rule.go#L483: 				Mod:      module.Version{Path: s, Version: v},
		rule.go#L1030: 		if r.Mod.Path != "" {
		rule.go#L1175: 		if r.Mod.Path == path {
		rule.go#L1177: 				r.Mod.Version = vers
		rule.go#L1198: 		Mod:    module.Version{Path: path, Version: vers},
		rule.go#L1226: 		if prev, dup := need[r.Mod.Path]; dup && prev.version != r.Mod.Version {
		rule.go#L1227: 			panic(fmt.Errorf("SetRequire called with conflicting versions for path %s (%s and %s)", r.Mod.Path, prev.version, r.Mod.Version))
		rule.go#L1229: 		need[r.Mod.Path] = elem{r.Mod.Version, r.Indirect}
		rule.go#L1235: 		e, ok := need[r.Mod.Path]
		rule.go#L1242: 		delete(need, r.Mod.Path)
		rule.go#L1300: 			line = &Line{Token: []string{AutoQuote(r.Mod.Path), r.Mod.Version}}
		rule.go#L1321: 		need[r.Mod.Path] = r
		rule.go#L1325: 		if n := need[r.Mod.Path]; n != nil {
		rule.go#L1487: 		path := r.Mod.Path
		rule.go#L1493: 		have[r.Mod.Path] = r
		rule.go#L1494: 		r.setVersion(need[path].Mod.Version)
		rule.go#L1532: 		if r.Mod.Path == path {

	go.pact.im/x/goship/internal/modsum
		rewrite.go#L35: 		cs, ok := updates[req.Mod.Path]
		rewrite.go#L39: 		if req.Mod.Version != cs.Version {
		rewrite.go#L40: 			replaced[req.Mod.Path] = req.Mod.Version
		rewrite.go#L41: 			if err := mf.AddRequire(req.Mod.Path, cs.Version); err != nil {
		rewrite.go#L42: 				return RewriteResult{}, fmt.Errorf("update require %s in %s: %w", req.Mod.Path, filename, err)
		rewrite.go#L45: 		applied[req.Mod.Path] = cs

	go.pact.im/x/goship/internal/workspace
		workspace.go#L215: 			Path:     r.Mod.Path,
		workspace.go#L216: 			Version:  r.Mod.Version,