Skip to content

Commit

Permalink
fix(ci-env): fix unable to copy "/Users/username/.docker/mutagen"
Browse files Browse the repository at this point in the history
Signed-off-by: Aleksei Igrychev <aleksei.igrychev@palark.com>
  • Loading branch information
alexey-igrychev committed May 6, 2024
1 parent 876e57e commit 6cac137
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkg/tmp_manager/docker_config_dir.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,12 @@ func CreateDockerConfigDir(ctx context.Context, fromDockerConfig string) (string
return "", fmt.Errorf("unable to read %q", fromDockerConfig)
}

pathsToSkip := []string{"run", "mutagen"}
for _, file := range files {
if file.Name() == "run" {
continue
for _, pathToSkip := range pathsToSkip {
if file.Name() == pathToSkip {
continue
}
}

source := filepath.Join(fromDockerConfig, file.Name())
Expand Down

0 comments on commit 6cac137

Please sign in to comment.