Skip to content

Commit

Permalink
pkg/receipt: move under pkg/installation
Browse files Browse the repository at this point in the history
Moving to somewhere more logically relevant.

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
  • Loading branch information
ahmetb committed Jul 18, 2019
1 parent 5969272 commit 029b167
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pkg/installation/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"sigs.k8s.io/krew/pkg/environment"
"sigs.k8s.io/krew/pkg/index"
"sigs.k8s.io/krew/pkg/pathutil"
"sigs.k8s.io/krew/pkg/receipt"
"sigs.k8s.io/krew/pkg/installation/receipt"
)

// Plugin Lifecycle Errors
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func TestLoad(t *testing.T) {
// TODO(ahmetb): Avoid reading test data from other packages. It would be
// good to have an in-memory Plugin object (issue#270) that we can Store()
// first then load here.
_, err := Load(filepath.Join("..", "..", "integration_test", "testdata", "foo.yaml"))
_, err := Load(filepath.Join("..","..", "..", "integration_test", "testdata", "foo.yaml"))
if err != nil {
t.Fatal(err)
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/installation/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (

"sigs.k8s.io/krew/pkg/environment"
"sigs.k8s.io/krew/pkg/index"
"sigs.k8s.io/krew/pkg/receipt"
"sigs.k8s.io/krew/pkg/installation/receipt"

"github.com/golang/glog"
"github.com/pkg/errors"
Expand Down
2 changes: 1 addition & 1 deletion pkg/installation/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ import (

"sigs.k8s.io/krew/pkg/constants"
"sigs.k8s.io/krew/pkg/index"
"sigs.k8s.io/krew/pkg/installation/receipt"
"sigs.k8s.io/krew/pkg/pathutil"
"sigs.k8s.io/krew/pkg/receipt"
)

func findInstalledPluginVersion(installPath, binDir, pluginName string) (name string, installed bool, err error) {
Expand Down

0 comments on commit 029b167

Please sign in to comment.