Skip to content

Commit

Permalink
Bumps packit to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Moran authored and ForestEckhardt committed Dec 7, 2021
1 parent ee7f05a commit b7e526e
Show file tree
Hide file tree
Showing 26 changed files with 107 additions and 50 deletions.
6 changes: 3 additions & 3 deletions commands/pack.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"strings"

"github.com/paketo-buildpacks/jam/internal"
"github.com/paketo-buildpacks/packit/cargo"
"github.com/paketo-buildpacks/packit/pexec"
"github.com/paketo-buildpacks/packit/scribe"
"github.com/paketo-buildpacks/packit/v2/cargo"
"github.com/paketo-buildpacks/packit/v2/pexec"
"github.com/paketo-buildpacks/packit/v2/scribe"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion commands/update_dependencies.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"os"

"github.com/paketo-buildpacks/jam/internal"
"github.com/paketo-buildpacks/packit/cargo"
"github.com/paketo-buildpacks/packit/v2/cargo"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require (
github.com/docker/distribution v2.7.1+incompatible
github.com/google/go-containerregistry v0.7.0
github.com/onsi/gomega v1.17.0
github.com/paketo-buildpacks/packit v1.3.1
github.com/paketo-buildpacks/packit/v2 v2.0.0
github.com/pelletier/go-toml v1.9.4
github.com/sclevine/spec v1.4.0
github.com/spf13/cobra v1.2.1
Expand Down
91 changes: 74 additions & 17 deletions go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion internal/builder_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/sclevine/spec"

. "github.com/onsi/gomega"
. "github.com/paketo-buildpacks/packit/matchers"
. "github.com/paketo-buildpacks/packit/v2/matchers"
)

func testBuilderConfig(t *testing.T, context spec.G, it spec.S) {
Expand Down
2 changes: 1 addition & 1 deletion internal/buildpack_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/sclevine/spec"

. "github.com/onsi/gomega"
. "github.com/paketo-buildpacks/packit/matchers"
. "github.com/paketo-buildpacks/packit/v2/matchers"
)

func testBuildpackConfig(t *testing.T, context spec.G, it spec.S) {
Expand Down
2 changes: 1 addition & 1 deletion internal/buildpack_inspector.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"path/filepath"
"strings"

"github.com/paketo-buildpacks/packit/cargo"
"github.com/paketo-buildpacks/packit/v2/cargo"
)

type BuildpackInspector struct{}
Expand Down
2 changes: 1 addition & 1 deletion internal/buildpack_inspector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"testing"

"github.com/paketo-buildpacks/jam/internal"
"github.com/paketo-buildpacks/packit/cargo"
"github.com/paketo-buildpacks/packit/v2/cargo"
"github.com/sclevine/spec"

. "github.com/onsi/gomega"
Expand Down
2 changes: 1 addition & 1 deletion internal/dependency.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"time"

"github.com/Masterminds/semver/v3"
"github.com/paketo-buildpacks/packit/cargo"
"github.com/paketo-buildpacks/packit/v2/cargo"
)

// Dependency represents the structure of a single entry in the dep-server
Expand Down
4 changes: 2 additions & 2 deletions internal/dependency_cacher.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"path/filepath"
"strings"

"github.com/paketo-buildpacks/packit/cargo"
"github.com/paketo-buildpacks/packit/scribe"
"github.com/paketo-buildpacks/packit/v2/cargo"
"github.com/paketo-buildpacks/packit/v2/scribe"
)

//go:generate faux --interface Downloader --output fakes/downloader.go
Expand Down
4 changes: 2 additions & 2 deletions internal/dependency_cacher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (

"github.com/paketo-buildpacks/jam/internal"
"github.com/paketo-buildpacks/jam/internal/fakes"
"github.com/paketo-buildpacks/packit/cargo"
"github.com/paketo-buildpacks/packit/scribe"
"github.com/paketo-buildpacks/packit/v2/cargo"
"github.com/paketo-buildpacks/packit/v2/scribe"
"github.com/sclevine/spec"

. "github.com/onsi/gomega"
Expand Down
2 changes: 1 addition & 1 deletion internal/dependency_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"testing"

"github.com/paketo-buildpacks/jam/internal"
"github.com/paketo-buildpacks/packit/cargo"
"github.com/paketo-buildpacks/packit/v2/cargo"
"github.com/sclevine/spec"

. "github.com/onsi/gomega"
Expand Down
2 changes: 1 addition & 1 deletion internal/fakes/executable.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package fakes
import (
"sync"

"github.com/paketo-buildpacks/packit/pexec"
"github.com/paketo-buildpacks/packit/v2/pexec"
)

type Executable struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/file_bundler.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strings"
"time"

"github.com/paketo-buildpacks/packit/cargo"
"github.com/paketo-buildpacks/packit/v2/cargo"
)

type File struct {
Expand Down
4 changes: 2 additions & 2 deletions internal/file_bundler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import (
"testing"

"github.com/paketo-buildpacks/jam/internal"
"github.com/paketo-buildpacks/packit/cargo"
"github.com/paketo-buildpacks/packit/v2/cargo"
"github.com/sclevine/spec"

. "github.com/onsi/gomega"
. "github.com/paketo-buildpacks/packit/matchers"
. "github.com/paketo-buildpacks/packit/v2/matchers"
)

func testFileBundler(t *testing.T, context spec.G, it spec.S) {
Expand Down
2 changes: 1 addition & 1 deletion internal/formatter.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"sort"

"github.com/Masterminds/semver/v3"
"github.com/paketo-buildpacks/packit/cargo"
"github.com/paketo-buildpacks/packit/v2/cargo"
)

type Formatter struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/formatter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"

"github.com/paketo-buildpacks/jam/internal"
"github.com/paketo-buildpacks/packit/cargo"
"github.com/paketo-buildpacks/packit/v2/cargo"
"github.com/sclevine/spec"

. "github.com/onsi/gomega"
Expand Down
2 changes: 1 addition & 1 deletion internal/package_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/sclevine/spec"

. "github.com/onsi/gomega"
. "github.com/paketo-buildpacks/packit/matchers"
. "github.com/paketo-buildpacks/packit/v2/matchers"
)

func testPackageConfig(t *testing.T, context spec.G, it spec.S) {
Expand Down
4 changes: 2 additions & 2 deletions internal/pre_packager.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package internal
import (
"io"

"github.com/paketo-buildpacks/packit/pexec"
"github.com/paketo-buildpacks/packit/scribe"
"github.com/paketo-buildpacks/packit/v2/pexec"
"github.com/paketo-buildpacks/packit/v2/scribe"
)

//go:generate faux --interface Executable --output fakes/executable.go
Expand Down
4 changes: 2 additions & 2 deletions internal/pre_packager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (

"github.com/paketo-buildpacks/jam/internal"
"github.com/paketo-buildpacks/jam/internal/fakes"
"github.com/paketo-buildpacks/packit/pexec"
"github.com/paketo-buildpacks/packit/scribe"
"github.com/paketo-buildpacks/packit/v2/pexec"
"github.com/paketo-buildpacks/packit/v2/scribe"
"github.com/sclevine/spec"

. "github.com/onsi/gomega"
Expand Down
2 changes: 1 addition & 1 deletion internal/tar_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"sort"
"time"

"github.com/paketo-buildpacks/packit/scribe"
"github.com/paketo-buildpacks/packit/v2/scribe"
)

type TarBuilder struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/tar_builder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"time"

"github.com/paketo-buildpacks/jam/internal"
"github.com/paketo-buildpacks/packit/scribe"
"github.com/paketo-buildpacks/packit/v2/scribe"
"github.com/sclevine/spec"

. "github.com/onsi/gomega"
Expand Down
4 changes: 2 additions & 2 deletions pack_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ import (

"github.com/onsi/gomega/gbytes"
"github.com/onsi/gomega/gexec"
"github.com/paketo-buildpacks/packit/cargo"
"github.com/paketo-buildpacks/packit/v2/cargo"
"github.com/sclevine/spec"

. "github.com/onsi/gomega"
. "github.com/paketo-buildpacks/packit/matchers"
. "github.com/paketo-buildpacks/packit/v2/matchers"
)

func testPack(t *testing.T, context spec.G, it spec.S) {
Expand Down
2 changes: 1 addition & 1 deletion update_builder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"github.com/sclevine/spec"

. "github.com/onsi/gomega"
. "github.com/paketo-buildpacks/packit/matchers"
. "github.com/paketo-buildpacks/packit/v2/matchers"
)

func mustConfigName(t *testing.T, img v1.Image) v1.Hash {
Expand Down
2 changes: 1 addition & 1 deletion update_buildpack_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"github.com/sclevine/spec"

. "github.com/onsi/gomega"
. "github.com/paketo-buildpacks/packit/matchers"
. "github.com/paketo-buildpacks/packit/v2/matchers"
)

func testUpdateBuildpack(t *testing.T, context spec.G, it spec.S) {
Expand Down
2 changes: 1 addition & 1 deletion update_dependencies_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/sclevine/spec"

. "github.com/onsi/gomega"
. "github.com/paketo-buildpacks/packit/matchers"
. "github.com/paketo-buildpacks/packit/v2/matchers"
)

func testUpdateDependencies(t *testing.T, context spec.G, it spec.S) {
Expand Down

0 comments on commit b7e526e

Please sign in to comment.