diff --git a/cmd/resolve.go b/cmd/resolve.go index 49aead5..54d5cea 100644 --- a/cmd/resolve.go +++ b/cmd/resolve.go @@ -87,7 +87,6 @@ func CollectRemoteDependencies(dependecies *pkl.ProjectDependencies) map[string] func Resolve(appConfig *app.AppConfig) error { resolver, err := app.NewResolver(appConfig) // sugar := appConfig.Logger.Sugar() - // sugar := appConfig.Logger.Sugar() project := appConfig.Project() remoteDependencies := CollectRemoteDependencies(project.Dependencies()) diff --git a/pkg/app/resolver.go b/pkg/app/resolver.go index e86eda0..9a52882 100644 --- a/pkg/app/resolver.go +++ b/pkg/app/resolver.go @@ -128,6 +128,11 @@ func (r *Resolver) Resolve(dependencies map[string]Dependency) (map[string]*Meta metadata, err := resolver.ResolveMetadata(dependency.Uri, plain) + for metadataName, metadataDep := range metadata.Dependencies { + metadataDep.Name = metadataName + metadata.Dependencies[metadataName] = metadataDep + } + if err != nil { logger.Errorw("Metadata resolving error", "name", dependencyName, "value", dependency) return nil, err