()
| 875 | } |
| 876 | |
| 877 | func (src *ModuleSource) Pin() string { |
| 878 | switch src.Kind { |
| 879 | case ModuleSourceKindLocal: |
| 880 | return "" |
| 881 | case ModuleSourceKindGit: |
| 882 | return src.Git.Commit |
| 883 | default: |
| 884 | return "" |
| 885 | } |
| 886 | } |
| 887 | |
| 888 | // GetRelatedModules returns the related modules (dependencies or toolchains) |
| 889 | // based on the type. |
no outgoing calls
no test coverage detected