ModuleToModuleKey returns a new ModuleKey for the given Module. The given Module must have a FullName and CommitID, otherwise this will return error.
(module Module, digestType DigestType)
| 202 | // |
| 203 | // The given Module must have a FullName and CommitID, otherwise this will return error. |
| 204 | func ModuleToModuleKey(module Module, digestType DigestType) (ModuleKey, error) { |
| 205 | return newModuleKey( |
| 206 | module.FullName(), |
| 207 | module.CommitID(), |
| 208 | func() (Digest, error) { |
| 209 | return module.Digest(digestType) |
| 210 | }, |
| 211 | ) |
| 212 | } |
| 213 | |
| 214 | // ModuleDirectModuleDeps is a convenience function that returns only the direct dependencies of the Module. |
| 215 | func ModuleDirectModuleDeps(module Module) ([]ModuleDep, error) { |
no test coverage detected
searching dependent graphs…