From c810215aa2390058f1406f512d71f77fc4b14815 Mon Sep 17 00:00:00 2001 From: Ryan Moran Date: Tue, 7 Dec 2021 08:37:30 -0800 Subject: [PATCH] Fixes import statement for v2 module --- README.md | 8 ++++---- build.go | 2 +- build_test.go | 6 +++--- cargo/buildpack_parser_test.go | 2 +- cargo/config_test.go | 4 ++-- cargo/directory_duplicator.go | 2 +- cargo/directory_duplicator_test.go | 2 +- cargo/transport_test.go | 2 +- cargo/validated_reader_test.go | 2 +- chronos/clock_test.go | 2 +- chronos/doc.go | 2 +- detect.go | 2 +- detect_test.go | 8 ++++---- doc.go | 6 +++--- draft/example_test.go | 4 ++-- draft/planner.go | 2 +- draft/planner_test.go | 4 ++-- environment_test.go | 2 +- fail.go | 2 +- fs/checksum_calculator_test.go | 2 +- fs/copy_test.go | 2 +- fs/exists_test.go | 2 +- fs/is_empty_dir_test.go | 2 +- fs/move_test.go | 2 +- go.mod | 2 +- internal/environment_writer_test.go | 2 +- internal/exit_handler_test.go | 2 +- internal/fail_test.go | 2 +- internal/file_writer_test.go | 2 +- internal/toml_writer_test.go | 4 ++-- layer_test.go | 2 +- layers_test.go | 2 +- paketosbom/sbom_test.go | 2 +- pexec/doc.go | 2 +- pexec/executable_test.go | 7 +++---- pexec/init_test.go | 4 ++-- postal/doc.go | 4 ++-- postal/internal/dependency_mappings.go | 3 ++- postal/internal/dependency_mappings_test.go | 6 +++--- postal/internal/fakes/binding_resolver.go | 2 +- postal/service.go | 12 ++++++------ postal/service_test.go | 8 ++++---- run.go | 2 +- run_test.go | 4 ++-- sbom/formatted_reader_test.go | 2 +- sbom/formatter.go | 2 +- sbom/formatter_test.go | 2 +- sbom/sbom.go | 2 +- sbom/sbom_test.go | 4 ++-- scribe/color_test.go | 2 +- scribe/emitter.go | 4 ++-- scribe/emitter_test.go | 8 ++++---- scribe/example_test.go | 6 +++--- scribe/formatted_list_test.go | 2 +- scribe/formatted_map.go | 2 +- scribe/formatted_map_test.go | 4 ++-- scribe/logger_test.go | 4 ++-- scribe/writer_test.go | 2 +- servicebindings/entry_test.go | 2 +- servicebindings/resolver_test.go | 4 ++-- vacation/archive_test.go | 2 +- vacation/bzip2_archive_test.go | 4 ++-- vacation/example_test.go | 2 +- vacation/executable_test.go | 2 +- vacation/gzip_archive_test.go | 4 ++-- vacation/link_sorting_test.go | 2 +- vacation/nop_archive_test.go | 2 +- vacation/tar_archive_test.go | 2 +- vacation/xz_archive_test.go | 2 +- vacation/zip_archive_test.go | 2 +- 70 files changed, 112 insertions(+), 112 deletions(-) diff --git a/README.md b/README.md index 7995c4a5..0379036f 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # packit -[![GoDoc](https://img.shields.io/badge/pkg.go.dev-doc-blue)](http://pkg.go.dev/github.com/paketo-buildpacks/packit) +[![GoDoc](https://img.shields.io/badge/pkg.go.dev-doc-blue)](http://pkg.go.dev/github.com/paketo-buildpacks/packit/v2) Package packit provides primitives for implementing a Cloud Native Buildpack according to the specification: @@ -29,7 +29,7 @@ import ( "os" "path/filepath" - "github.com/paketo-buildpacks/packit" + "github.com/paketo-buildpacks/packit/v2" ) func main() { @@ -103,7 +103,7 @@ application source code. ```go package main -import "github.com/paketo-buildpacks/packit" +import "github.com/paketo-buildpacks/packit/v2" func main() { // The build phase includes the yarn cli in a new layer that is made @@ -171,7 +171,7 @@ example that combines a simple detect and build into a single main program. ```go package main -import "github.com/paketo-buildpacks/packit" +import "github.com/paketo-buildpacks/packit/v2" func main() { detect := func(context packit.DetectContext) (packit.DetectResult, error) { diff --git a/build.go b/build.go index d1f7ffac..9bbf06c3 100644 --- a/build.go +++ b/build.go @@ -10,7 +10,7 @@ import ( "github.com/BurntSushi/toml" "github.com/Masterminds/semver/v3" - "github.com/paketo-buildpacks/packit/internal" + "github.com/paketo-buildpacks/packit/v2/internal" ) // BuildFunc is the definition of a callback that can be invoked when the Build diff --git a/build_test.go b/build_test.go index cca3f3ad..b5070b5a 100644 --- a/build_test.go +++ b/build_test.go @@ -9,12 +9,12 @@ import ( "testing" "testing/iotest" - "github.com/paketo-buildpacks/packit" - "github.com/paketo-buildpacks/packit/fakes" + "github.com/paketo-buildpacks/packit/v2" + "github.com/paketo-buildpacks/packit/v2/fakes" "github.com/sclevine/spec" . "github.com/onsi/gomega" - . "github.com/paketo-buildpacks/packit/matchers" + . "github.com/paketo-buildpacks/packit/v2/matchers" ) func testBuild(t *testing.T, context spec.G, it spec.S) { diff --git a/cargo/buildpack_parser_test.go b/cargo/buildpack_parser_test.go index 39a12784..4ac277f5 100644 --- a/cargo/buildpack_parser_test.go +++ b/cargo/buildpack_parser_test.go @@ -5,7 +5,7 @@ import ( "testing" "time" - "github.com/paketo-buildpacks/packit/cargo" + "github.com/paketo-buildpacks/packit/v2/cargo" "github.com/sclevine/spec" . "github.com/onsi/gomega" diff --git a/cargo/config_test.go b/cargo/config_test.go index f5c1c595..590d1863 100644 --- a/cargo/config_test.go +++ b/cargo/config_test.go @@ -7,11 +7,11 @@ import ( "testing" "time" - "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 testConfig(t *testing.T, context spec.G, it spec.S) { diff --git a/cargo/directory_duplicator.go b/cargo/directory_duplicator.go index eeda0f8c..94d1ba56 100644 --- a/cargo/directory_duplicator.go +++ b/cargo/directory_duplicator.go @@ -1,6 +1,6 @@ package cargo -import "github.com/paketo-buildpacks/packit/fs" +import "github.com/paketo-buildpacks/packit/v2/fs" type DirectoryDuplicator struct{} diff --git a/cargo/directory_duplicator_test.go b/cargo/directory_duplicator_test.go index 65eb79f0..a97ed728 100644 --- a/cargo/directory_duplicator_test.go +++ b/cargo/directory_duplicator_test.go @@ -6,7 +6,7 @@ import ( "path/filepath" "testing" - "github.com/paketo-buildpacks/packit/cargo" + "github.com/paketo-buildpacks/packit/v2/cargo" "github.com/sclevine/spec" . "github.com/onsi/gomega" diff --git a/cargo/transport_test.go b/cargo/transport_test.go index 269f419d..a7969766 100644 --- a/cargo/transport_test.go +++ b/cargo/transport_test.go @@ -9,7 +9,7 @@ import ( "path/filepath" "testing" - "github.com/paketo-buildpacks/packit/cargo" + "github.com/paketo-buildpacks/packit/v2/cargo" "github.com/sclevine/spec" . "github.com/onsi/gomega" diff --git a/cargo/validated_reader_test.go b/cargo/validated_reader_test.go index 64a778ab..febb3395 100644 --- a/cargo/validated_reader_test.go +++ b/cargo/validated_reader_test.go @@ -6,7 +6,7 @@ import ( "strings" "testing" - "github.com/paketo-buildpacks/packit/cargo" + "github.com/paketo-buildpacks/packit/v2/cargo" "github.com/sclevine/spec" . "github.com/onsi/gomega" diff --git a/chronos/clock_test.go b/chronos/clock_test.go index 6583cfc0..72610bd2 100644 --- a/chronos/clock_test.go +++ b/chronos/clock_test.go @@ -5,7 +5,7 @@ import ( "testing" "time" - "github.com/paketo-buildpacks/packit/chronos" + "github.com/paketo-buildpacks/packit/v2/chronos" "github.com/sclevine/spec" . "github.com/onsi/gomega" diff --git a/chronos/doc.go b/chronos/doc.go index 76557e6b..dbbf6441 100644 --- a/chronos/doc.go +++ b/chronos/doc.go @@ -9,7 +9,7 @@ // import ( // "os" // -// "github.com/paketo-buildpacks/packit/chronos" +// "github.com/paketo-buildpacks/packit/v2/chronos" // ) // // func main() { diff --git a/detect.go b/detect.go index db20dbe2..d9decbc0 100644 --- a/detect.go +++ b/detect.go @@ -6,7 +6,7 @@ import ( "strings" "github.com/BurntSushi/toml" - "github.com/paketo-buildpacks/packit/internal" + "github.com/paketo-buildpacks/packit/v2/internal" ) // DetectFunc is the definition of a callback that can be invoked when the diff --git a/detect_test.go b/detect_test.go index 9d58cd33..1904a126 100644 --- a/detect_test.go +++ b/detect_test.go @@ -7,13 +7,13 @@ import ( "path/filepath" "testing" - "github.com/paketo-buildpacks/packit" - "github.com/paketo-buildpacks/packit/fakes" - "github.com/paketo-buildpacks/packit/internal" + "github.com/paketo-buildpacks/packit/v2" + "github.com/paketo-buildpacks/packit/v2/fakes" + "github.com/paketo-buildpacks/packit/v2/internal" "github.com/sclevine/spec" . "github.com/onsi/gomega" - . "github.com/paketo-buildpacks/packit/matchers" + . "github.com/paketo-buildpacks/packit/v2/matchers" ) func testDetect(t *testing.T, context spec.G, it spec.S) { diff --git a/doc.go b/doc.go index 43863ac0..7f2f9568 100644 --- a/doc.go +++ b/doc.go @@ -24,7 +24,7 @@ // "os" // "path/filepath" // -// "github.com/paketo-buildpacks/packit" +// "github.com/paketo-buildpacks/packit/v2" // ) // // func main() { @@ -96,7 +96,7 @@ // // package main // -// import "github.com/paketo-buildpacks/packit" +// import "github.com/paketo-buildpacks/packit/v2" // // func main() { // // The build phase includes the yarn cli in a new layer that is made @@ -162,7 +162,7 @@ // // package main // -// import "github.com/paketo-buildpacks/packit" +// import "github.com/paketo-buildpacks/packit/v2" // // func main() { // detect := func(context packit.DetectContext) (packit.DetectResult, error) { diff --git a/draft/example_test.go b/draft/example_test.go index 4d81cfd9..c933a36a 100644 --- a/draft/example_test.go +++ b/draft/example_test.go @@ -4,8 +4,8 @@ import ( "fmt" "regexp" - "github.com/paketo-buildpacks/packit" - "github.com/paketo-buildpacks/packit/draft" + "github.com/paketo-buildpacks/packit/v2" + "github.com/paketo-buildpacks/packit/v2/draft" ) func ExamplePlanner_Resolve() { diff --git a/draft/planner.go b/draft/planner.go index 6ea188b4..8ae212a1 100644 --- a/draft/planner.go +++ b/draft/planner.go @@ -7,7 +7,7 @@ import ( "regexp" "sort" - "github.com/paketo-buildpacks/packit" + "github.com/paketo-buildpacks/packit/v2" ) // A Planner sorts buildpack plan entries using a given list of priorities. A diff --git a/draft/planner_test.go b/draft/planner_test.go index 63d7a7cd..077789b8 100644 --- a/draft/planner_test.go +++ b/draft/planner_test.go @@ -4,8 +4,8 @@ import ( "regexp" "testing" - "github.com/paketo-buildpacks/packit" - "github.com/paketo-buildpacks/packit/draft" + "github.com/paketo-buildpacks/packit/v2" + "github.com/paketo-buildpacks/packit/v2/draft" "github.com/sclevine/spec" . "github.com/onsi/gomega" diff --git a/environment_test.go b/environment_test.go index 912c62a1..ed9b1c0f 100644 --- a/environment_test.go +++ b/environment_test.go @@ -3,7 +3,7 @@ package packit_test import ( "testing" - "github.com/paketo-buildpacks/packit" + "github.com/paketo-buildpacks/packit/v2" "github.com/sclevine/spec" . "github.com/onsi/gomega" diff --git a/fail.go b/fail.go index ae69c0bd..09905838 100644 --- a/fail.go +++ b/fail.go @@ -1,6 +1,6 @@ package packit -import "github.com/paketo-buildpacks/packit/internal" +import "github.com/paketo-buildpacks/packit/v2/internal" // Fail is a sentinal value that can be used to indicate a failure to detect // during the detect phase. Fail implements the Error interface and should be diff --git a/fs/checksum_calculator_test.go b/fs/checksum_calculator_test.go index 2240cc22..e0bfdd62 100644 --- a/fs/checksum_calculator_test.go +++ b/fs/checksum_calculator_test.go @@ -7,7 +7,7 @@ import ( "path/filepath" "testing" - "github.com/paketo-buildpacks/packit/fs" + "github.com/paketo-buildpacks/packit/v2/fs" "github.com/sclevine/spec" . "github.com/onsi/gomega" diff --git a/fs/copy_test.go b/fs/copy_test.go index 669ac955..6802cf4d 100644 --- a/fs/copy_test.go +++ b/fs/copy_test.go @@ -5,7 +5,7 @@ import ( "path/filepath" "testing" - "github.com/paketo-buildpacks/packit/fs" + "github.com/paketo-buildpacks/packit/v2/fs" "github.com/sclevine/spec" . "github.com/onsi/gomega" diff --git a/fs/exists_test.go b/fs/exists_test.go index 8c6bcafa..ca55e817 100644 --- a/fs/exists_test.go +++ b/fs/exists_test.go @@ -5,7 +5,7 @@ import ( "path/filepath" "testing" - "github.com/paketo-buildpacks/packit/fs" + "github.com/paketo-buildpacks/packit/v2/fs" "github.com/sclevine/spec" . "github.com/onsi/gomega" diff --git a/fs/is_empty_dir_test.go b/fs/is_empty_dir_test.go index 7f278c75..1398e2dd 100644 --- a/fs/is_empty_dir_test.go +++ b/fs/is_empty_dir_test.go @@ -5,7 +5,7 @@ import ( "path/filepath" "testing" - "github.com/paketo-buildpacks/packit/fs" + "github.com/paketo-buildpacks/packit/v2/fs" "github.com/sclevine/spec" . "github.com/onsi/gomega" diff --git a/fs/move_test.go b/fs/move_test.go index fa317186..f7cd8b42 100644 --- a/fs/move_test.go +++ b/fs/move_test.go @@ -5,7 +5,7 @@ import ( "path/filepath" "testing" - "github.com/paketo-buildpacks/packit/fs" + "github.com/paketo-buildpacks/packit/v2/fs" "github.com/sclevine/spec" . "github.com/onsi/gomega" diff --git a/go.mod b/go.mod index 7f8a2061..3a9d823f 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/paketo-buildpacks/packit +module github.com/paketo-buildpacks/packit/v2 go 1.16 diff --git a/internal/environment_writer_test.go b/internal/environment_writer_test.go index 82b38024..9c85217a 100644 --- a/internal/environment_writer_test.go +++ b/internal/environment_writer_test.go @@ -5,7 +5,7 @@ import ( "path/filepath" "testing" - "github.com/paketo-buildpacks/packit/internal" + "github.com/paketo-buildpacks/packit/v2/internal" "github.com/sclevine/spec" . "github.com/onsi/gomega" diff --git a/internal/exit_handler_test.go b/internal/exit_handler_test.go index c61587c0..a7e55d16 100644 --- a/internal/exit_handler_test.go +++ b/internal/exit_handler_test.go @@ -5,7 +5,7 @@ import ( "errors" "testing" - "github.com/paketo-buildpacks/packit/internal" + "github.com/paketo-buildpacks/packit/v2/internal" "github.com/sclevine/spec" . "github.com/onsi/gomega" diff --git a/internal/fail_test.go b/internal/fail_test.go index 055aeb65..16a898e0 100644 --- a/internal/fail_test.go +++ b/internal/fail_test.go @@ -3,7 +3,7 @@ package internal_test import ( "testing" - "github.com/paketo-buildpacks/packit/internal" + "github.com/paketo-buildpacks/packit/v2/internal" "github.com/sclevine/spec" . "github.com/onsi/gomega" diff --git a/internal/file_writer_test.go b/internal/file_writer_test.go index 1af53b79..3622876b 100644 --- a/internal/file_writer_test.go +++ b/internal/file_writer_test.go @@ -8,7 +8,7 @@ import ( "testing" "testing/iotest" - "github.com/paketo-buildpacks/packit/internal" + "github.com/paketo-buildpacks/packit/v2/internal" "github.com/sclevine/spec" . "github.com/onsi/gomega" diff --git a/internal/toml_writer_test.go b/internal/toml_writer_test.go index e557c1ec..6630f5ab 100644 --- a/internal/toml_writer_test.go +++ b/internal/toml_writer_test.go @@ -5,11 +5,11 @@ import ( "path/filepath" "testing" - "github.com/paketo-buildpacks/packit/internal" + "github.com/paketo-buildpacks/packit/v2/internal" "github.com/sclevine/spec" . "github.com/onsi/gomega" - . "github.com/paketo-buildpacks/packit/matchers" + . "github.com/paketo-buildpacks/packit/v2/matchers" ) func testTOMLWriter(t *testing.T, context spec.G, it spec.S) { diff --git a/layer_test.go b/layer_test.go index ee06efde..0d3d639c 100644 --- a/layer_test.go +++ b/layer_test.go @@ -5,7 +5,7 @@ import ( "path/filepath" "testing" - "github.com/paketo-buildpacks/packit" + "github.com/paketo-buildpacks/packit/v2" "github.com/sclevine/spec" . "github.com/onsi/gomega" diff --git a/layers_test.go b/layers_test.go index 503d0b1c..e1039511 100644 --- a/layers_test.go +++ b/layers_test.go @@ -5,7 +5,7 @@ import ( "path/filepath" "testing" - "github.com/paketo-buildpacks/packit" + "github.com/paketo-buildpacks/packit/v2" "github.com/sclevine/spec" . "github.com/onsi/gomega" diff --git a/paketosbom/sbom_test.go b/paketosbom/sbom_test.go index ea3f9e72..ca9f7caf 100644 --- a/paketosbom/sbom_test.go +++ b/paketosbom/sbom_test.go @@ -8,7 +8,7 @@ import ( . "github.com/onsi/gomega" //nolint Ignore SA1019, usage of deprecated package within a deprecated test case - "github.com/paketo-buildpacks/packit/paketosbom" + "github.com/paketo-buildpacks/packit/v2/paketosbom" ) func testPaketoSBOM(t *testing.T, context spec.G, it spec.S) { diff --git a/pexec/doc.go b/pexec/doc.go index 19f54a88..0ffc26b8 100644 --- a/pexec/doc.go +++ b/pexec/doc.go @@ -8,7 +8,7 @@ // import ( // "os" // -// "github.com/paketo-buildpacks/packit/pexec" +// "github.com/paketo-buildpacks/packit/v2/pexec" // ) // // func main() { diff --git a/pexec/executable_test.go b/pexec/executable_test.go index 1fec2ace..cb089118 100644 --- a/pexec/executable_test.go +++ b/pexec/executable_test.go @@ -7,10 +7,9 @@ import ( "path/filepath" "testing" - "github.com/sclevine/spec" - "github.com/onsi/gomega/gexec" - "github.com/paketo-buildpacks/packit/pexec" + "github.com/paketo-buildpacks/packit/v2/pexec" + "github.com/sclevine/spec" . "github.com/onsi/gomega" ) @@ -127,7 +126,7 @@ func testPexec(t *testing.T, context spec.G, it spec.S) { Expect(os.Setenv("PATH", existingPath)).To(Succeed()) var err error - errorCLI, err = gexec.Build("github.com/paketo-buildpacks/packit/fakes/some-executable", "-ldflags", "-X main.fail=true") + errorCLI, err = gexec.Build("github.com/paketo-buildpacks/packit/v2/fakes/some-executable", "-ldflags", "-X main.fail=true") Expect(err).NotTo(HaveOccurred()) path = os.Getenv("PATH") diff --git a/pexec/init_test.go b/pexec/init_test.go index c5de5924..5712f309 100644 --- a/pexec/init_test.go +++ b/pexec/init_test.go @@ -17,14 +17,14 @@ var ( fakeCLI string ) -func TestUnitExec(t *testing.T) { +func TestUnitPexec(t *testing.T) { var Expect = NewWithT(t).Expect suite := spec.New("packit/pexec", spec.Report(report.Terminal{})) suite("pexec", testPexec) var err error - fakeCLI, err = gexec.Build("github.com/paketo-buildpacks/packit/fakes/some-executable") + fakeCLI, err = gexec.Build("github.com/paketo-buildpacks/packit/v2/fakes/some-executable") Expect(err).NotTo(HaveOccurred()) existingPath = os.Getenv("PATH") diff --git a/postal/doc.go b/postal/doc.go index 42353198..9b29ac12 100644 --- a/postal/doc.go +++ b/postal/doc.go @@ -8,8 +8,8 @@ // import ( // "log" // -// "github.com/paketo-buildpacks/packit/cargo" -// "github.com/paketo-buildpacks/packit/postal" +// "github.com/paketo-buildpacks/packit/v2/cargo" +// "github.com/paketo-buildpacks/packit/v2/postal" // ) // // func main() { diff --git a/postal/internal/dependency_mappings.go b/postal/internal/dependency_mappings.go index f54e71b5..7d5d1000 100644 --- a/postal/internal/dependency_mappings.go +++ b/postal/internal/dependency_mappings.go @@ -2,7 +2,8 @@ package internal import ( "fmt" - "github.com/paketo-buildpacks/packit/servicebindings" + + "github.com/paketo-buildpacks/packit/v2/servicebindings" ) //go:generate faux --interface BindingResolver --output fakes/binding_resolver.go diff --git a/postal/internal/dependency_mappings_test.go b/postal/internal/dependency_mappings_test.go index dc7ae033..0264d8cc 100644 --- a/postal/internal/dependency_mappings_test.go +++ b/postal/internal/dependency_mappings_test.go @@ -5,9 +5,9 @@ import ( "path/filepath" "testing" - "github.com/paketo-buildpacks/packit/postal/internal" - "github.com/paketo-buildpacks/packit/postal/internal/fakes" - "github.com/paketo-buildpacks/packit/servicebindings" + "github.com/paketo-buildpacks/packit/v2/postal/internal" + "github.com/paketo-buildpacks/packit/v2/postal/internal/fakes" + "github.com/paketo-buildpacks/packit/v2/servicebindings" "github.com/sclevine/spec" . "github.com/onsi/gomega" diff --git a/postal/internal/fakes/binding_resolver.go b/postal/internal/fakes/binding_resolver.go index 8edce015..cbc8de37 100644 --- a/postal/internal/fakes/binding_resolver.go +++ b/postal/internal/fakes/binding_resolver.go @@ -3,7 +3,7 @@ package fakes import ( "sync" - "github.com/paketo-buildpacks/packit/servicebindings" + "github.com/paketo-buildpacks/packit/v2/servicebindings" ) type BindingResolver struct { diff --git a/postal/service.go b/postal/service.go index cf172d3f..33d93333 100644 --- a/postal/service.go +++ b/postal/service.go @@ -10,14 +10,14 @@ import ( "time" "github.com/Masterminds/semver/v3" - "github.com/paketo-buildpacks/packit" - "github.com/paketo-buildpacks/packit/cargo" - "github.com/paketo-buildpacks/packit/postal/internal" - "github.com/paketo-buildpacks/packit/servicebindings" - "github.com/paketo-buildpacks/packit/vacation" + "github.com/paketo-buildpacks/packit/v2" + "github.com/paketo-buildpacks/packit/v2/cargo" + "github.com/paketo-buildpacks/packit/v2/postal/internal" + "github.com/paketo-buildpacks/packit/v2/servicebindings" + "github.com/paketo-buildpacks/packit/v2/vacation" //nolint Ignore SA1019, usage of deprecated package within a deprecated test case - "github.com/paketo-buildpacks/packit/paketosbom" + "github.com/paketo-buildpacks/packit/v2/paketosbom" ) //go:generate faux --interface Transport --output fakes/transport.go diff --git a/postal/service_test.go b/postal/service_test.go index 23af1a58..03b1a24f 100644 --- a/postal/service_test.go +++ b/postal/service_test.go @@ -14,13 +14,13 @@ import ( "testing" "time" - "github.com/paketo-buildpacks/packit" - "github.com/paketo-buildpacks/packit/postal" - "github.com/paketo-buildpacks/packit/postal/fakes" + "github.com/paketo-buildpacks/packit/v2" + "github.com/paketo-buildpacks/packit/v2/postal" + "github.com/paketo-buildpacks/packit/v2/postal/fakes" "github.com/sclevine/spec" //nolint Ignore SA1019, usage of deprecated package within a deprecated test case - "github.com/paketo-buildpacks/packit/paketosbom" + "github.com/paketo-buildpacks/packit/v2/paketosbom" . "github.com/onsi/gomega" ) diff --git a/run.go b/run.go index 23f4b294..5b1bc035 100644 --- a/run.go +++ b/run.go @@ -5,7 +5,7 @@ import ( "os" "path/filepath" - "github.com/paketo-buildpacks/packit/internal" + "github.com/paketo-buildpacks/packit/v2/internal" ) // Run combines the invocation of both build and detect into a single entry diff --git a/run_test.go b/run_test.go index 9efe0767..0894a781 100644 --- a/run_test.go +++ b/run_test.go @@ -5,8 +5,8 @@ import ( "path/filepath" "testing" - "github.com/paketo-buildpacks/packit" - "github.com/paketo-buildpacks/packit/fakes" + "github.com/paketo-buildpacks/packit/v2" + "github.com/paketo-buildpacks/packit/v2/fakes" "github.com/sclevine/spec" . "github.com/onsi/gomega" diff --git a/sbom/formatted_reader_test.go b/sbom/formatted_reader_test.go index 9225576d..ac00b1b0 100644 --- a/sbom/formatted_reader_test.go +++ b/sbom/formatted_reader_test.go @@ -7,7 +7,7 @@ import ( "io" "testing" - "github.com/paketo-buildpacks/packit/sbom" + "github.com/paketo-buildpacks/packit/v2/sbom" "github.com/sclevine/spec" . "github.com/onsi/gomega" diff --git a/sbom/formatter.go b/sbom/formatter.go index 9756fd4b..8dde2150 100644 --- a/sbom/formatter.go +++ b/sbom/formatter.go @@ -1,6 +1,6 @@ package sbom -import "github.com/paketo-buildpacks/packit" +import "github.com/paketo-buildpacks/packit/v2" // Formatter implements the packit.SBOMFormatter interface. type Formatter struct { diff --git a/sbom/formatter_test.go b/sbom/formatter_test.go index 5355ed10..10bbccc6 100644 --- a/sbom/formatter_test.go +++ b/sbom/formatter_test.go @@ -4,7 +4,7 @@ import ( "io" "testing" - "github.com/paketo-buildpacks/packit/sbom" + "github.com/paketo-buildpacks/packit/v2/sbom" "github.com/sclevine/spec" . "github.com/onsi/gomega" diff --git a/sbom/sbom.go b/sbom/sbom.go index 473c8943..c1eecc64 100644 --- a/sbom/sbom.go +++ b/sbom/sbom.go @@ -7,7 +7,7 @@ import ( "github.com/anchore/syft/syft/pkg" "github.com/anchore/syft/syft/sbom" "github.com/anchore/syft/syft/source" - "github.com/paketo-buildpacks/packit/postal" + "github.com/paketo-buildpacks/packit/v2/postal" ) // SBOM holds the internal representation of the generated software diff --git a/sbom/sbom_test.go b/sbom/sbom_test.go index ceb4caac..e53e25c4 100644 --- a/sbom/sbom_test.go +++ b/sbom/sbom_test.go @@ -7,8 +7,8 @@ import ( "io" "testing" - "github.com/paketo-buildpacks/packit/postal" - "github.com/paketo-buildpacks/packit/sbom" + "github.com/paketo-buildpacks/packit/v2/postal" + "github.com/paketo-buildpacks/packit/v2/sbom" "github.com/sclevine/spec" . "github.com/onsi/gomega" diff --git a/scribe/color_test.go b/scribe/color_test.go index 07167378..18a82279 100644 --- a/scribe/color_test.go +++ b/scribe/color_test.go @@ -3,7 +3,7 @@ package scribe_test import ( "testing" - "github.com/paketo-buildpacks/packit/scribe" + "github.com/paketo-buildpacks/packit/v2/scribe" "github.com/sclevine/spec" . "github.com/onsi/gomega" diff --git a/scribe/emitter.go b/scribe/emitter.go index f2ec5206..4660453f 100644 --- a/scribe/emitter.go +++ b/scribe/emitter.go @@ -7,8 +7,8 @@ import ( "strings" "time" - "github.com/paketo-buildpacks/packit" - "github.com/paketo-buildpacks/packit/postal" + "github.com/paketo-buildpacks/packit/v2" + "github.com/paketo-buildpacks/packit/v2/postal" ) // An Emitter embeds the scribe.Logger type to provide an interface for diff --git a/scribe/emitter_test.go b/scribe/emitter_test.go index 3d60b700..1d0033e1 100644 --- a/scribe/emitter_test.go +++ b/scribe/emitter_test.go @@ -5,13 +5,13 @@ import ( "testing" "time" - "github.com/paketo-buildpacks/packit" - "github.com/paketo-buildpacks/packit/postal" - "github.com/paketo-buildpacks/packit/scribe" + "github.com/paketo-buildpacks/packit/v2" + "github.com/paketo-buildpacks/packit/v2/postal" + "github.com/paketo-buildpacks/packit/v2/scribe" "github.com/sclevine/spec" . "github.com/onsi/gomega" - . "github.com/paketo-buildpacks/packit/matchers" + . "github.com/paketo-buildpacks/packit/v2/matchers" ) func testEmitter(t *testing.T, context spec.G, it spec.S) { diff --git a/scribe/example_test.go b/scribe/example_test.go index 23689267..18ffb4cf 100644 --- a/scribe/example_test.go +++ b/scribe/example_test.go @@ -6,9 +6,9 @@ import ( "os" "time" - "github.com/paketo-buildpacks/packit" - "github.com/paketo-buildpacks/packit/postal" - "github.com/paketo-buildpacks/packit/scribe" + "github.com/paketo-buildpacks/packit/v2" + "github.com/paketo-buildpacks/packit/v2/postal" + "github.com/paketo-buildpacks/packit/v2/scribe" ) func ExampleEmitter() { diff --git a/scribe/formatted_list_test.go b/scribe/formatted_list_test.go index 7075408c..0df4a0ba 100644 --- a/scribe/formatted_list_test.go +++ b/scribe/formatted_list_test.go @@ -3,7 +3,7 @@ package scribe_test import ( "testing" - "github.com/paketo-buildpacks/packit/scribe" + "github.com/paketo-buildpacks/packit/v2/scribe" "github.com/sclevine/spec" . "github.com/onsi/gomega" diff --git a/scribe/formatted_map.go b/scribe/formatted_map.go index 16f19629..4846ba84 100644 --- a/scribe/formatted_map.go +++ b/scribe/formatted_map.go @@ -5,7 +5,7 @@ import ( "sort" "strings" - "github.com/paketo-buildpacks/packit" + "github.com/paketo-buildpacks/packit/v2" ) // A FormattedMap is a wrapper for map[string]interface{} to extend functionality. diff --git a/scribe/formatted_map_test.go b/scribe/formatted_map_test.go index 1a79b730..ac8264a6 100644 --- a/scribe/formatted_map_test.go +++ b/scribe/formatted_map_test.go @@ -3,8 +3,8 @@ package scribe_test import ( "testing" - "github.com/paketo-buildpacks/packit" - "github.com/paketo-buildpacks/packit/scribe" + "github.com/paketo-buildpacks/packit/v2" + "github.com/paketo-buildpacks/packit/v2/scribe" "github.com/sclevine/spec" . "github.com/onsi/gomega" diff --git a/scribe/logger_test.go b/scribe/logger_test.go index 0a9a43d3..ee8222b3 100644 --- a/scribe/logger_test.go +++ b/scribe/logger_test.go @@ -4,11 +4,11 @@ import ( "bytes" "testing" - "github.com/paketo-buildpacks/packit/scribe" + "github.com/paketo-buildpacks/packit/v2/scribe" "github.com/sclevine/spec" . "github.com/onsi/gomega" - . "github.com/paketo-buildpacks/packit/matchers" + . "github.com/paketo-buildpacks/packit/v2/matchers" ) func testLogger(t *testing.T, context spec.G, it spec.S) { diff --git a/scribe/writer_test.go b/scribe/writer_test.go index 369b7479..4a253454 100644 --- a/scribe/writer_test.go +++ b/scribe/writer_test.go @@ -4,7 +4,7 @@ import ( "bytes" "testing" - "github.com/paketo-buildpacks/packit/scribe" + "github.com/paketo-buildpacks/packit/v2/scribe" "github.com/sclevine/spec" . "github.com/onsi/gomega" diff --git a/servicebindings/entry_test.go b/servicebindings/entry_test.go index 83fb990d..95c5824e 100644 --- a/servicebindings/entry_test.go +++ b/servicebindings/entry_test.go @@ -6,7 +6,7 @@ import ( "path/filepath" "testing" - "github.com/paketo-buildpacks/packit/servicebindings" + "github.com/paketo-buildpacks/packit/v2/servicebindings" "github.com/sclevine/spec" . "github.com/onsi/gomega" diff --git a/servicebindings/resolver_test.go b/servicebindings/resolver_test.go index f6893d2d..885d0e0c 100644 --- a/servicebindings/resolver_test.go +++ b/servicebindings/resolver_test.go @@ -5,10 +5,10 @@ import ( "path/filepath" "testing" - . "github.com/onsi/gomega" + "github.com/paketo-buildpacks/packit/v2/servicebindings" "github.com/sclevine/spec" - "github.com/paketo-buildpacks/packit/servicebindings" + . "github.com/onsi/gomega" ) func testResolver(t *testing.T, context spec.G, it spec.S) { diff --git a/vacation/archive_test.go b/vacation/archive_test.go index af3df9fb..03739bb6 100644 --- a/vacation/archive_test.go +++ b/vacation/archive_test.go @@ -13,7 +13,7 @@ import ( "testing" dsnetBzip2 "github.com/dsnet/compress/bzip2" - "github.com/paketo-buildpacks/packit/vacation" + "github.com/paketo-buildpacks/packit/v2/vacation" "github.com/sclevine/spec" "github.com/ulikunitz/xz" diff --git a/vacation/bzip2_archive_test.go b/vacation/bzip2_archive_test.go index 499c0b54..545c018e 100644 --- a/vacation/bzip2_archive_test.go +++ b/vacation/bzip2_archive_test.go @@ -9,7 +9,7 @@ import ( "testing" dsnetBzip2 "github.com/dsnet/compress/bzip2" - "github.com/paketo-buildpacks/packit/vacation" + "github.com/paketo-buildpacks/packit/v2/vacation" "github.com/sclevine/spec" . "github.com/onsi/gomega" @@ -22,7 +22,7 @@ func testBzip2Archive(t *testing.T, context spec.G, it spec.S) { context("Decompress", func() { var ( - tempDir string + tempDir string bzip2Archive vacation.Bzip2Archive ) diff --git a/vacation/example_test.go b/vacation/example_test.go index 9bfcf15a..3418d1a8 100644 --- a/vacation/example_test.go +++ b/vacation/example_test.go @@ -11,7 +11,7 @@ import ( "path/filepath" dsnetBzip2 "github.com/dsnet/compress/bzip2" - "github.com/paketo-buildpacks/packit/vacation" + "github.com/paketo-buildpacks/packit/v2/vacation" "github.com/ulikunitz/xz" ) diff --git a/vacation/executable_test.go b/vacation/executable_test.go index cae6d32d..e1acf5be 100644 --- a/vacation/executable_test.go +++ b/vacation/executable_test.go @@ -9,7 +9,7 @@ import ( "path/filepath" "testing" - "github.com/paketo-buildpacks/packit/vacation" + "github.com/paketo-buildpacks/packit/v2/vacation" "github.com/sclevine/spec" . "github.com/onsi/gomega" diff --git a/vacation/gzip_archive_test.go b/vacation/gzip_archive_test.go index a8a996cd..c8ebc8c4 100644 --- a/vacation/gzip_archive_test.go +++ b/vacation/gzip_archive_test.go @@ -9,7 +9,7 @@ import ( "path/filepath" "testing" - "github.com/paketo-buildpacks/packit/vacation" + "github.com/paketo-buildpacks/packit/v2/vacation" "github.com/sclevine/spec" . "github.com/onsi/gomega" @@ -22,7 +22,7 @@ func testGzipArchive(t *testing.T, context spec.G, it spec.S) { context("Decompress", func() { var ( - tempDir string + tempDir string gzipArchive vacation.GzipArchive ) diff --git a/vacation/link_sorting_test.go b/vacation/link_sorting_test.go index 63c2985b..352e5c5e 100644 --- a/vacation/link_sorting_test.go +++ b/vacation/link_sorting_test.go @@ -9,7 +9,7 @@ import ( "path/filepath" "testing" - "github.com/paketo-buildpacks/packit/vacation" + "github.com/paketo-buildpacks/packit/v2/vacation" "github.com/sclevine/spec" . "github.com/onsi/gomega" diff --git a/vacation/nop_archive_test.go b/vacation/nop_archive_test.go index 2a863de9..25a1f993 100644 --- a/vacation/nop_archive_test.go +++ b/vacation/nop_archive_test.go @@ -6,7 +6,7 @@ import ( "path/filepath" "testing" - "github.com/paketo-buildpacks/packit/vacation" + "github.com/paketo-buildpacks/packit/v2/vacation" "github.com/sclevine/spec" . "github.com/onsi/gomega" diff --git a/vacation/tar_archive_test.go b/vacation/tar_archive_test.go index eb540217..96e3f088 100644 --- a/vacation/tar_archive_test.go +++ b/vacation/tar_archive_test.go @@ -8,7 +8,7 @@ import ( "path/filepath" "testing" - "github.com/paketo-buildpacks/packit/vacation" + "github.com/paketo-buildpacks/packit/v2/vacation" "github.com/sclevine/spec" . "github.com/onsi/gomega" diff --git a/vacation/xz_archive_test.go b/vacation/xz_archive_test.go index 77f3ca9a..c99b905b 100644 --- a/vacation/xz_archive_test.go +++ b/vacation/xz_archive_test.go @@ -8,7 +8,7 @@ import ( "path/filepath" "testing" - "github.com/paketo-buildpacks/packit/vacation" + "github.com/paketo-buildpacks/packit/v2/vacation" "github.com/sclevine/spec" "github.com/ulikunitz/xz" diff --git a/vacation/zip_archive_test.go b/vacation/zip_archive_test.go index 1e1c660b..91d04124 100644 --- a/vacation/zip_archive_test.go +++ b/vacation/zip_archive_test.go @@ -8,7 +8,7 @@ import ( "path/filepath" "testing" - "github.com/paketo-buildpacks/packit/vacation" + "github.com/paketo-buildpacks/packit/v2/vacation" "github.com/sclevine/spec" . "github.com/onsi/gomega"