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

mig build failed, error cannot find package "github.com/NVIDIA/mig-parted/cmd/apply" in any of:. #12

Open
anateshan opened this issue Aug 18, 2022 · 6 comments

Comments

@anateshan
Copy link

anateshan commented Aug 18, 2022

Using ubuntu 18.04, and when try to install, mig parted tool I get this erro " cannot find package "github.com/NVIDIA/mig-parted/cmd/apply" in any of:"

user@host-1:~/slurm-instal/mig-parted$ go build ./cmd/nvidia-mig-parted
cmd/nvidia-mig-parted/main.go:22:2: cannot find package "github.com/NVIDIA/mig-parted/cmd/apply" in any of:
/usr/src/github.com/NVIDIA/mig-parted/cmd/apply (from $GOROOT)
/home/user/go/src/github.com/NVIDIA/mig-parted/cmd/apply (from $GOPATH)
cmd/nvidia-mig-parted/main.go:23:2: cannot find package "github.com/NVIDIA/mig-parted/cmd/assert" in any of:
/usr/src/github.com/NVIDIA/mig-parted/cmd/assert (from $GOROOT)
/home/user/go/src/github.com/NVIDIA/mig-parted/cmd/assert (from $GOPATH)
cmd/nvidia-mig-parted/main.go:24:2: cannot find package "github.com/NVIDIA/mig-parted/cmd/checkpoint" in any of:
/usr/src/github.com/NVIDIA/mig-parted/cmd/checkpoint (from $GOROOT)
/home/user/go/src/github.com/NVIDIA/mig-parted/cmd/checkpoint (from $GOPATH)
cmd/nvidia-mig-parted/main.go:25:2: cannot find package "github.com/NVIDIA/mig-parted/cmd/export" in any of:
/usr/src/github.com/NVIDIA/mig-parted/cmd/export (from $GOROOT)
/home/user/go/src/github.com/NVIDIA/mig-parted/cmd/export (from $GOPATH)
cmd/nvidia-mig-parted/main.go:26:2: cannot find package "github.com/NVIDIA/mig-parted/cmd/restore" in any of:
/usr/src/github.com/NVIDIA/mig-parted/cmd/restore (from $GOROOT)
/home/user/go/src/github.com/NVIDIA/mig-parted/cmd/restore (from $GOPATH)
cmd/nvidia-mig-parted/main.go:27:2: cannot find package "github.com/NVIDIA/mig-parted/cmd/util" in any of:
/usr/src/github.com/NVIDIA/mig-parted/cmd/util (from $GOROOT)
/home/user/go/src/github.com/NVIDIA/mig-parted/cmd/util (from $GOPATH)
cmd/nvidia-mig-parted/main.go:28:2: cannot find package "github.com/sirupsen/logrus" in any of:
/usr/src/github.com/sirupsen/logrus (from $GOROOT)
/home/user/go/src/github.com/sirupsen/logrus (from $GOPATH)
cmd/nvidia-mig-parted/main.go:29:2: cannot find package "github.com/urfave/cli/v2" in any of:
/usr/src/github.com/urfave/cli/v2 (from $GOROOT)
/home/user/go/src/github.com/urfave/cli/v2 (from $GOPATH)

@anateshan anateshan changed the title build failed ./cmd/nvidia-mig-parted mig build failed, error cannot find package "github.com/NVIDIA/mig-parted/cmd/apply" in any of:. Aug 18, 2022
@timgold81
Copy link

Same thing. Did you solve it ?

@elezar
Copy link
Member

elezar commented Apr 24, 2023

At which commit are you building the packages and which version of golang are you using?

@timgold81
Copy link

The Go that is installed with apt was not sufficient. I installed from Go website, and then it compiled.

@elezar
Copy link
Member

elezar commented Apr 24, 2023

Which version of go was installed via apt?

@timgold81
Copy link

for my server it is :
go version go1.10.4 linux/amd64

@elezar
Copy link
Member

elezar commented Apr 24, 2023

Go 1.10 is definitely too old. We use 1.18 or 1.20 for development in general.

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

3 participants