refactoring test setup and using .env file for test

This commit is contained in:
Jan Naahs
2020-10-09 23:59:56 +02:00
parent 2fbbec7574
commit 49f72d6500
13 changed files with 170 additions and 144 deletions

View File

@ -83,6 +83,7 @@ func (modInfoList *ModInfoList) listInstalledMods() error {
continue
}
// skip optional and incompatible dependencies
parts := strings.Split(dep, " ")
if len(parts) > 3 {
log.Printf("skipping dependency '%s' in '%s': invalid format\n", dep, modInfo.Name)
@ -107,7 +108,7 @@ func (modInfoList *ModInfoList) listInstalledMods() error {
break
}
server, _ := GetFactorioServer()
server := GetFactorioServer()
if !base.Equals(NilVersion) {
modInfo.Compatibility = server.Version.Compare(base, op)