Skip to content
This repository was archived by the owner on Jun 11, 2021. It is now read-only.

Commit 92f929c

Browse files
committed
Add debug message to local module function
1 parent ed152f3 commit 92f929c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pkg/xterrafile/local.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import (
2424
"strings"
2525

2626
"github.com/otiai10/copy"
27+
2728
jww "github.com/spf13/jwalterweatherman"
2829
)
2930

@@ -37,6 +38,7 @@ var localSourcePrefixes = []string{
3738

3839
// IsLocalSourceAddr returns true if the address is a relative filepath
3940
func IsLocalSourceAddr(addr string) bool {
41+
jww.DEBUG.Printf("Testing if %s is a local source", addr)
4042
for _, prefix := range localSourcePrefixes {
4143
if strings.HasPrefix(addr, prefix) {
4244
return true

pkg/xterrafile/local_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,4 @@ func TestCopyFile(t *testing.T) {
2121
os.RemoveAll(tmpTestDir)
2222
CopyFile("test-dir", "../../test/module", path.Join(tmpTestDir, moduleName))
2323
assert.FileExists(t, path.Join(tmpTestDir, moduleName, "main.tf"), "file should be copied into tmp dir")
24-
2524
}

0 commit comments

Comments
 (0)