(cloneRef, sourceRootSubpath, version string)
| 863 | } |
| 864 | |
| 865 | func GitRefString(cloneRef, sourceRootSubpath, version string) string { |
| 866 | refPath := cloneRef |
| 867 | subPath := filepath.Join("/", sourceRootSubpath) |
| 868 | if subPath != "/" { |
| 869 | refPath += subPath |
| 870 | } |
| 871 | if version != "" { |
| 872 | refPath += "@" + version |
| 873 | } |
| 874 | return refPath |
| 875 | } |
| 876 | |
| 877 | func (src *ModuleSource) Pin() string { |
| 878 | switch src.Kind { |
no outgoing calls
no test coverage detected