Skip to content

Commit

Permalink
fixed remote cycled dependencies (#6)
Browse files Browse the repository at this point in the history
Co-authored-by: German Osin <germanosin@MacBookAlma.local>
  • Loading branch information
germanosin and German Osin authored Jul 17, 2024
1 parent 2d3446f commit 6904f7d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion cmd/resolve.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down
5 changes: 5 additions & 0 deletions pkg/app/resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6904f7d

Please sign in to comment.