Skip to content

Commit e699b7b

Browse files
committed
Removing tests and debug statements
1 parent 4a72e60 commit e699b7b

4 files changed

Lines changed: 0 additions & 63 deletions

File tree

packer/cache.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package packer
22

33
import (
4-
"fmt"
54
"os"
65
"path/filepath"
76
)
@@ -26,18 +25,14 @@ func CachePath(paths ...string) (path string, err error) {
2625
os.MkdirAll(filepath.Dir(path), os.ModePerm)
2726
}()
2827
cacheDir := getDefaultCacheDir()
29-
fmt.Println(fmt.Sprintf("cacheDir: %s", cacheDir))
3028
if cd := os.Getenv("PACKER_CACHE_DIR"); cd != "" {
31-
fmt.Println(fmt.Sprintf("cd: %s", cd))
3229
cacheDir = cd
3330
}
3431

3532
paths = append([]string{cacheDir}, paths...)
36-
fmt.Println(fmt.Sprintf("paths: %s", paths))
3733
result, err := filepath.Abs(filepath.Join(paths...))
3834
if err != nil {
3935
return "", err
4036
}
41-
fmt.Println(fmt.Sprintf("result: %s", result))
4237
return result, err
4338
}

packer/cache_config_unix.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,13 @@
33
package packer
44

55
import (
6-
"fmt"
76
"os"
87
"path/filepath"
98
)
109

1110
func getDefaultCacheDir() string {
1211
var defaultConfigFileDir string
1312

14-
fmt.Println("Hiting linux configuration")
1513
if xdgConfigHome := os.Getenv("XDG_CONFIG_HOME"); xdgConfigHome != "" {
1614
defaultConfigFileDir = xdgConfigHome
1715
} else {

packer/cache_config_windows.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,10 @@
22

33
package packer
44

5-
import (
6-
"fmt"
7-
)
8-
95
const (
106
defaultConfigFile = "packer_cache"
117
)
128

139
func getDefaultCacheDir() string {
14-
fmt.Println("Hiting windows configuration")
1510
return defaultConfigFile
1611
}

packer/cache_test.go

Lines changed: 0 additions & 51 deletions
This file was deleted.

0 commit comments

Comments
 (0)