From 4a7834c45293916e0c57ccfcfa1b44aaf3a5dbc4 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Wed, 21 Aug 2024 15:16:54 -0400 Subject: [PATCH] drop two repeated entries in file extension lists The repeated entries in extrapolateCopyFilesFromExtensions lead to the *_copied.json files listing the file twice. As a result, 'clean --copiedRuns ...` tries to remove the file twice, leading to a failure (converted to a logged message as of the last commit, and silently dropped before that). --- cmd/nonmem.go | 2 -- runner/consts.go | 2 -- 2 files changed, 4 deletions(-) diff --git a/cmd/nonmem.go b/cmd/nonmem.go index 8d1ed1ff..1400f3e8 100644 --- a/cmd/nonmem.go +++ b/cmd/nonmem.go @@ -645,8 +645,6 @@ func extrapolateCopyFilesFromExtensions(filename string, level int) []string { } extensions[2] = []string{ - ".clt", - ".coi", ".clt", ".coi", ".cpu", diff --git a/runner/consts.go b/runner/consts.go index a1c0271d..53c373c7 100644 --- a/runner/consts.go +++ b/runner/consts.go @@ -102,8 +102,6 @@ func EstOutputFilesByRun(r string) map[string]int { "_RMAT.msf", } fileExtsLvl2 := []string{ - ".clt", - ".coi", ".clt", ".coi", ".cpu",