diff options
author | Steve Manuel <nilslice@gmail.com> | 2016-12-17 02:30:31 -0800 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2016-12-17 02:30:31 -0800 |
commit | c3452d5e8b7e12eb0f9ab7ac6d65a518f1fdd91b (patch) | |
tree | 7637c8478ddc82286b98ea1a45ad7a35a2152d87 /cmd/ponzu/options.go | |
parent | 743743d35e598de23ede74a4e173c35e607901e4 (diff) |
debug
Diffstat (limited to 'cmd/ponzu/options.go')
-rw-r--r-- | cmd/ponzu/options.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd/ponzu/options.go b/cmd/ponzu/options.go index 1076d93..948aeeb 100644 --- a/cmd/ponzu/options.go +++ b/cmd/ponzu/options.go @@ -171,12 +171,14 @@ func vendorCorePackages(path string) error { func copyFile(src, dst string) error { noRoot := strings.Split(src, string(filepath.Separator))[1:] path := filepath.Join(noRoot...) + fmt.Println("dstFile:", filepath.Join(dst, path)) dstFile, err := os.Create(filepath.Join(dst, path)) defer dstFile.Close() if err != nil { return err } + fmt.Println("srcFile:", src) srcFile, err := os.Open(src) defer srcFile.Close() if err != nil { @@ -193,13 +195,12 @@ func copyFile(src, dst string) error { func copyFilesWarnConflicts(srcDir, dstDir string, conflicts []string) error { err := filepath.Walk(srcDir, func(path string, info os.FileInfo, err error) error { - fmt.Println(path) + fmt.Println("hit:", path) if err != nil { return err } if info.IsDir() { - fmt.Println(path, srcDir) if len(path) > len(srcDir) { path = path[len(srcDir)+1:] } |