(dependencyPath string, source *latest.SourceConfig)
| 216 | } |
| 217 | |
| 218 | func getDependencyConfigPath(dependencyPath string, source *latest.SourceConfig) (string, error) { |
| 219 | var configPath string |
| 220 | if source.SubPath != "" { |
| 221 | dependencyPath = filepath.Join(dependencyPath, filepath.FromSlash(source.SubPath)) |
| 222 | } |
| 223 | if strings.HasSuffix(dependencyPath, ".yaml") || strings.HasSuffix(dependencyPath, ".yml") { |
| 224 | configPath = dependencyPath |
| 225 | } else { |
| 226 | configPath = filepath.Join(dependencyPath, constants.DefaultConfigPath) |
| 227 | } |
| 228 | |
| 229 | return configPath, nil |
| 230 | } |
| 231 | |
| 232 | func GetDependencyID(source *latest.SourceConfig) (string, error) { |
| 233 | // check if source is there |
no outgoing calls
no test coverage detected