Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use source as the dst for go-getter #9

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion config/module/tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,13 @@ func (t *Tree) Load(s getter.Storage, mode GetMode) error {
// Get the directory where this module is so we can load it
key := strings.Join(path, ".")
key = "root." + key
dir, ok, err := getStorage(s, key, source, mode)

// Altering this to pass source as the key to go-getter
//
// This was changed in https://github.com/hashicorp/terraform/pull/1418
// to support cross platform pushes, we don't need this and prefer
// the performance improvement from the old method
dir, ok, err := getStorage(s, source, source, mode)
if err != nil {
return err
}
Expand Down