MCPcopy Index your code
hub / github.com/devspace-sh/devspace / getDependencyConfigPath

Function getDependencyConfigPath

pkg/devspace/dependency/util/util.go:218–230  ·  view source on GitHub ↗
(dependencyPath string, source *latest.SourceConfig)

Source from the content-addressed store, hash-verified

216}
217
218func 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
232func GetDependencyID(source *latest.SourceConfig) (string, error) {
233 // check if source is there

Callers 2

GetDependencyPathFunction · 0.85
DownloadDependencyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected