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

Commit

Permalink
[IAC-1677] Replace gofmt with goimports (#86)
Browse files Browse the repository at this point in the history
* replace gofmt with goimports

* run pre-commit
  • Loading branch information
ina-stoyanova authored Jul 9, 2021
1 parent 731b102 commit 2dbf5e9
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 10 deletions.
2 changes: 2 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ jobs:
- run:
command: |
pip install pre-commit==1.21.0 cfgv==2.0.1 zipp==1.1.0 yapf
go get golang.org/x/tools/cmd/goimports
export GOPATH=~/go/bin && export PATH=$PATH:$GOPATH
pre-commit install
pre-commit run --all-files
test:
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ repos:
rev: v0.1.10
hooks:
- id: terraform-fmt
- id: gofmt
- id: goimports
2 changes: 1 addition & 1 deletion test/couchbase_multi_cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/gruntwork-io/terratest/modules/aws"
"github.com/gruntwork-io/terratest/modules/random"
"github.com/gruntwork-io/terratest/modules/terraform"
"github.com/gruntwork-io/terratest/modules/test-structure"
test_structure "github.com/gruntwork-io/terratest/modules/test-structure"
)

const dataNodeClusterVarName = "couchbase_data_node_cluster_name"
Expand Down
9 changes: 5 additions & 4 deletions test/couchbase_multi_datacenter_replication_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ package test

import (
"fmt"
"github.com/gruntwork-io/terratest/modules/aws"
"github.com/gruntwork-io/terratest/modules/random"
"github.com/gruntwork-io/terratest/modules/terraform"
"github.com/gruntwork-io/terratest/modules/test-structure"
"path/filepath"
"sync"
"testing"

"github.com/gruntwork-io/terratest/modules/aws"
"github.com/gruntwork-io/terratest/modules/random"
"github.com/gruntwork-io/terratest/modules/terraform"
test_structure "github.com/gruntwork-io/terratest/modules/test-structure"
)

const clusterNamePrimaryVarName = "cluster_name_primary"
Expand Down
2 changes: 1 addition & 1 deletion test/docker_compose_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/gruntwork-io/terratest/modules/docker"
"github.com/gruntwork-io/terratest/modules/logger"
"github.com/gruntwork-io/terratest/modules/random"
"github.com/gruntwork-io/terratest/modules/test-structure"
test_structure "github.com/gruntwork-io/terratest/modules/test-structure"
)

func TestUnitCouchbaseInDocker(t *testing.T) {
Expand Down
7 changes: 4 additions & 3 deletions test/terratest_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@ package test

import (
"fmt"
"github.com/gruntwork-io/terratest/modules/aws"
"github.com/gruntwork-io/terratest/modules/logger"
"github.com/gruntwork-io/terratest/modules/packer"
"io/ioutil"
"net/http"
"net/url"
"strings"
"testing"
"time"

"github.com/gruntwork-io/terratest/modules/aws"
"github.com/gruntwork-io/terratest/modules/logger"
"github.com/gruntwork-io/terratest/modules/packer"
)

// The username and password we use in all the examples, mocks, and tests
Expand Down

0 comments on commit 2dbf5e9

Please sign in to comment.