summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmd/ponzu/options.go5
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:]
}