Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Commit

Permalink
fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
nritholtz committed Feb 16, 2023
1 parent 080cfbb commit af25b75
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func init() {
func gitClone(repository string, version string, moduleName string, destinationDir string) {
cleanupPath := filepath.Join(destinationDir, moduleName)
log.Printf("[*] Removing previously cloned artifacts at %s", cleanupPath)
os.RemoveAll(cleanupPath)
_ = os.RemoveAll(cleanupPath)
log.Printf("[*] Checking out %s of %s \n", version, repository)
cmd := exec.Command("git", "clone", "--single-branch", "--depth=1", "-b", version, repository, moduleName)
cmd.Dir = destinationDir
Expand Down
4 changes: 2 additions & 2 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,11 @@ func TestTerraformWithTerrafilePath(t *testing.T) {

// Assert checked out correct version
for moduleName, cloneOptions := range map[string]map[string]string{
"tf-aws-vpc": map[string]string{
"tf-aws-vpc": {
"repository": "[email protected]:terraform-aws-modules/terraform-aws-vpc",
"version": "v1.46.0",
},
"tf-aws-vpc-experimental": map[string]string{
"tf-aws-vpc-experimental": {
"repository": "[email protected]:terraform-aws-modules/terraform-aws-vpc",
"version": "master",
},
Expand Down

0 comments on commit af25b75

Please sign in to comment.