Skip to content

Commit

Permalink
fix: correct merging of extends from remote config (#529)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrexox authored Jul 24, 2023
1 parent 41e1f60 commit 7fb992f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/config/load.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,11 @@ func mergeRemote(fs afero.Fs, repo *git.Repository, v *viper.Viper) error {
return err
}

// Reset extends to omit issues when extending with remote extends.
if err := v.MergeConfigMap(map[string]interface{}{"extends": nil}); err != nil {
return err
}

return nil
}

Expand All @@ -171,6 +176,7 @@ func extend(v *viper.Viper, root string) error {
return err
}
}

return nil
}

Expand Down

0 comments on commit 7fb992f

Please sign in to comment.