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

Commit 5494509

Browse files
authored
Merge pull request #15 from devopsmakers/dedup_pkg_path
Deduplicate path to xterrafile/pkg
2 parents 07b2631 + 174f2ad commit 5494509

File tree

27 files changed

+374
-151
lines changed

27 files changed

+374
-151
lines changed

Gopkg.lock

Lines changed: 17 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cmd/install.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import (
3131

3232
getter "github.com/hashicorp/go-getter"
3333

34-
xt "github.com/devopsmakers/xterrafile/pkg/xterrafile"
34+
xt "github.com/devopsmakers/xterrafile/pkg"
3535
)
3636

3737
// installCmd represents the install command

cmd/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import (
2626
"os"
2727
"regexp"
2828

29-
xt "github.com/devopsmakers/xterrafile/pkg/xterrafile"
29+
xt "github.com/devopsmakers/xterrafile/pkg"
3030
"github.com/spf13/cobra"
3131
"gopkg.in/yaml.v2"
3232
)
File renamed without changes.
File renamed without changes.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ func TestIsLocalSourceAddr(t *testing.T) {
1616
}
1717

1818
func TestCopyFile(t *testing.T) {
19-
tmpTestDir := "../../test/tmp/"
19+
tmpTestDir := "../test/tmp/"
2020
moduleName := "test-module"
2121
os.RemoveAll(tmpTestDir)
22-
CopyFile("test-dir", "../../test/module", path.Join(tmpTestDir, moduleName))
22+
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")
2424
}
File renamed without changes.

0 commit comments

Comments
 (0)