In module lists, handle allowed replacements.

This commit is contained in:
monopole
2021-04-30 18:35:59 -07:00
parent accd71a105
commit 6c9bf58e7f
6 changed files with 32 additions and 30 deletions

View File

@@ -15,7 +15,7 @@ type ManagerFactory struct {
versionMapRemote misc.VersionMap
}
func (mf *ManagerFactory) NewRepoManager() *Manager {
func (mf *ManagerFactory) NewRepoManager(allowedReplacements []string) *Manager {
result := &Manager{
dg: mf.dg,
remoteName: mf.remoteName,
@@ -31,5 +31,6 @@ func (mf *ManagerFactory) NewRepoManager() *Manager {
mf.versionMapRemote.Latest(shortName)))
}
result.modules = modules
result.allowedReplacements = allowedReplacements
return result
}