lang: gapi: Duplicates are possible if we have a diamond dag
Allow this, just remove them...
This commit is contained in:
@@ -343,12 +343,8 @@ func (obj *GAPI) Cli(info *gapi.Info) (*gapi.Deploy, error) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: do we still need this, now that we have the Imports DAG?
|
// There are duplicates if in our dag we use the same import twice.
|
||||||
noDuplicates := util.StrRemoveDuplicatesInList(files)
|
files = util.StrRemoveDuplicatesInList(files)
|
||||||
if len(noDuplicates) != len(files) {
|
|
||||||
// programming error here or in this logical test
|
|
||||||
return nil, fmt.Errorf("duplicates in file list found")
|
|
||||||
}
|
|
||||||
|
|
||||||
// Add any missing dirs, so that we don't need to use `MkdirAll`...
|
// Add any missing dirs, so that we don't need to use `MkdirAll`...
|
||||||
// FIXME: It's possible that the dirs get generated upstream, but it's
|
// FIXME: It's possible that the dirs get generated upstream, but it's
|
||||||
|
|||||||
Reference in New Issue
Block a user