Skip to content

Commit

Permalink
run gofumpt to get cleaner imports
Browse files Browse the repository at this point in the history
  • Loading branch information
crhntr committed Mar 8, 2024
1 parent ac1295d commit 78ce891
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
3 changes: 2 additions & 1 deletion internal/commands/bake_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package commands_test

import (
"errors"
"github.com/pivotal-cf/kiln/pkg/bake"
"log"
"os"
"path/filepath"
Expand All @@ -11,6 +10,8 @@ import (
"testing"
"time"

"github.com/pivotal-cf/kiln/pkg/bake"

. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
. "github.com/pivotal-cf-experimental/gomegamatchers"
Expand Down
8 changes: 5 additions & 3 deletions internal/commands/rebake.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@ package commands
import (
"encoding/json"
"fmt"
"github.com/pivotal-cf/jhanda"
"github.com/pivotal-cf/kiln/internal/builder"
"github.com/pivotal-cf/kiln/pkg/bake"
"log"
"os"
"path/filepath"
"strings"

"github.com/pivotal-cf/jhanda"

"github.com/pivotal-cf/kiln/internal/builder"
"github.com/pivotal-cf/kiln/pkg/bake"
)

type ReBake struct {
Expand Down
12 changes: 6 additions & 6 deletions pkg/bake/record_test.go
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
package bake_test

import (
"github.com/pivotal-cf/kiln/pkg/bake"
"github.com/stretchr/testify/assert"
"os"
"os/exec"
"path/filepath"
"testing"

"github.com/pivotal-cf/kiln/internal/builder"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/pivotal-cf/kiln/internal/builder"
"github.com/pivotal-cf/kiln/pkg/bake"
)

func TestNewRecordFromFile(t *testing.T) {
Expand Down Expand Up @@ -228,7 +228,7 @@ func TestBakeRecord_SetTileDirectory(t *testing.T) {
repoRoot := createAndMoveToTemporaryTileDirectory(t)
createGitRepository(t, repoRoot)
subDir := filepath.Join("peach", "pear")
require.NoError(t, os.MkdirAll(subDir, 0766))
require.NoError(t, os.MkdirAll(subDir, 0o766))

record, err := bake.Record{}.SetTileDirectory(subDir)
require.NoError(t, err)
Expand Down Expand Up @@ -260,7 +260,7 @@ func createAndMoveToTemporaryTileDirectory(t *testing.T, subDirectory ...string)

if len(subDirectory) > 0 {
subDir := filepath.Join(subDirectory...)
require.NoError(t, os.MkdirAll(subDir, 0766))
require.NoError(t, os.MkdirAll(subDir, 0o766))
require.NoError(t, os.Chdir(subDir))
}

Expand Down

0 comments on commit 78ce891

Please sign in to comment.