Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hostpath getting failed #28

Open
vadlakiran opened this issue May 2, 2023 · 0 comments
Open

hostpath getting failed #28

vadlakiran opened this issue May 2, 2023 · 0 comments

Comments

@vadlakiran
Copy link

vadlakiran commented May 2, 2023

when i creating the hostpath image getting below error and can we use already tag which we can use for hostpath.

i am trying to use local directory to store the backup using hostpath.

/kiran/velero/velero_demo/local-volume-provider-0.4.4$ ls -ltr
total 136
drwxrwxr-x 2 draj draj 4096 Jan 31 03:44 testing
-rw-rw-r-- 1 draj draj 8444 Jan 31 03:44 README.md
drwxrwxr-x 5 draj draj 4096 Jan 31 03:44 pkg
-rw-rw-r-- 1 draj draj 2303 Jan 31 03:44 Makefile
-rw-rw-r-- 1 draj draj 10255 Jan 31 03:44 LICENSE
drwxrwxr-x 2 draj draj 4096 Jan 31 03:44 hack
-rw-rw-r-- 1 draj draj 74268 Jan 31 03:44 go.sum
-rw-rw-r-- 1 draj draj 3282 Jan 31 03:44 go.mod
drwxrwxr-x 2 draj draj 4096 Jan 31 03:44 examples
drwxrwxr-x 3 draj draj 4096 Jan 31 03:44 deploy
drwxrwxr-x 4 draj draj 4096 Jan 31 03:44 cmd
drwxrwxr-x 3 draj draj 4096 Apr 27 20:13 _output
/kiran/velero/velero_demo/local-volume-provider-0.4.4$ make plugin
CGO_ENABLED=0 go build -ldflags=" -X github.com/replicatedhq/local-volume-provider/pkg/version.version=main " -v -o _output/b in/linux/amd64 ./cmd/local-volume-provider
cmd/local-volume-provider/main.go:7:2: cannot find package "github.com/replicatedhq/local-volume-provider/pkg/plugin" in any o f:
/usr/lib/go-1.10/src/github.com/replicatedhq/local-volume-provider/pkg/plugin (from $GOROOT)
/opt/draj/go/src/github.com/replicatedhq/local-volume-provider/pkg/plugin (from $GOPATH)
cmd/local-volume-provider/main.go:8:2: cannot find package "github.com/replicatedhq/local-volume-provider/pkg/version" in any of:
/usr/lib/go-1.10/src/github.com/replicatedhq/local-volume-provider/pkg/version (from $GOROOT)
/opt/draj/go/src/github.com/replicatedhq/local-volume-provider/pkg/version (from $GOPATH)
cmd/local-volume-provider/main.go:9:2: cannot find package "github.com/sirupsen/logrus" in any of:
/usr/lib/go-1.10/src/github.com/sirupsen/logrus (from $GOROOT)
/opt/draj/go/src/github.com/sirupsen/logrus (from $GOPATH)
cmd/local-volume-provider/main.go:10:2: cannot find package "github.com/spf13/pflag" in any of:
/usr/lib/go-1.10/src/github.com/spf13/pflag (from $GOROOT)
/opt/draj/go/src/github.com/spf13/pflag (from $GOPATH)
cmd/local-volume-provider/main.go:11:2: cannot find package "github.com/vmware-tanzu/velero/pkg/plugin/framework" in any of:
/usr/lib/go-1.10/src/github.com/vmware-tanzu/velero/pkg/plugin/framework (from $GOROOT)
/opt/draj/go/src/github.com/vmware-tanzu/velero/pkg/plugin/framework (from $GOPATH)
Makefile:18: recipe for target 'plugin' failed
make: *** [plugin] Error 1
:~/kiran/velero/velero_demo/local-volume-provider-0.4.4$ sudo make plugin
CGO_ENABLED=0 go build -ldflags=" -X github.com/replicatedhq/local-volume-provider/pkg/version.version=main " -v -o _output/b in/linux/amd64 ./cmd/local-volume-provider
cmd/local-volume-provider/main.go:7:2: cannot find package "github.com/replicatedhq/local-volume-provider/pkg/plugin" in any o f:
/usr/lib/go-1.10/src/github.com/replicatedhq/local-volume-provider/pkg/plugin (from $GOROOT)
/opt/draj/go/src/github.com/replicatedhq/local-volume-provider/pkg/plugin (from $GOPATH)
cmd/local-volume-provider/main.go:8:2: cannot find package "github.com/replicatedhq/local-volume-provider/pkg/version" in any of:
/usr/lib/go-1.10/src/github.com/replicatedhq/local-volume-provider/pkg/version (from $GOROOT)
/opt/draj/go/src/github.com/replicatedhq/local-volume-provider/pkg/version (from $GOPATH)
cmd/local-volume-provider/main.go:9:2: cannot find package "github.com/sirupsen/logrus" in any of:
/usr/lib/go-1.10/src/github.com/sirupsen/logrus (from $GOROOT)
/opt/draj/go/src/github.com/sirupsen/logrus (from $GOPATH)
cmd/local-volume-provider/main.go:10:2: cannot find package "github.com/spf13/pflag" in any of:
/usr/lib/go-1.10/src/github.com/spf13/pflag (from $GOROOT)
/opt/draj/go/src/github.com/spf13/pflag (from $GOPATH)
cmd/local-volume-provider/main.go:11:2: cannot find package "github.com/vmware-tanzu/velero/pkg/plugin/framework" in any of:
/usr/lib/go-1.10/src/github.com/vmware-tanzu/velero/pkg/plugin/framework (from $GOROOT)
/opt/draj/go/src/github.com/vmware-tanzu/velero/pkg/plugin/framework (from $GOPATH)
Makefile:18: recipe for target 'plugin' failed
make: *** [plugin] Error 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant