importing kata-container runtime to Goland
Hi, When I import kata-container runtime to Goland, there were unrecognized imports. e.g.
opentracing "github.com/opentracing/opentracing-go" "github.com/pkg/errors" "github.com/sirupsen/logrus"
I have enabled Go Modules preference.
If someone uses Goland for development, please share your setup.
Thanks
Hi Ted,
Welcome to the list. Have you followed the instructions in the Developer Guide [1]? If that doesn't work, please raise a GitHub issue with more details of your environment.
Cheers,
James
[1] - https://github.com/kata-containers/documentation/blob/master/Developer-Guide...
Le ven. 22 nov. 2019 à 17:55, Ted Yu yuzhihong@gmail.com a écrit :
Hi, When I import kata-container runtime to Goland, there were unrecognized imports. e.g.
opentracing "github.com/opentracing/opentracing-go" "github.com/pkg/errors" "github.com/sirupsen/logrus"
I have enabled Go Modules preference.
If someone uses Goland for development, please share your setup.
Thanks
kata-dev mailing list kata-dev@lists.katacontainers.io http://lists.katacontainers.io/cgi-bin/mailman/listinfo/kata-dev
Thanks for the reply.
When I execute make, I see the following:
../../go-workspace/pkg/mod/ github.com/opencontainers/runc@v0.0.0-20170926091510-0351df1c5a66/libcontainer/utils/utils_unix.go:39:62: undefined: unix.SOCK_CLOEXEC # github.com/kata-containers/runtime/pkg/signals ../../go-workspace/pkg/mod/ github.com/kata-containers/runtime@v0.0.0-20191122173334-fea166d8ebb8/pkg/signals/signals.go:35:2: undefined: syscall.SIGSTKFLT # github.com/containerd/cgroups ../../go-workspace/pkg/mod/ github.com/containerd/cgroups@v0.0.0-20190717030353-c4b9ac5c7601/memory.go:179:33: undefined: unix.SYS_EVENTFD2 ../../go-workspace/pkg/mod/ github.com/containerd/cgroups@v0.0.0-20190717030353-c4b9ac5c7601/memory.go:179:55: undefined: unix.EFD_CLOEXEC make: *** [/Users/yute/t-k-runtime/kata-runtime] Error 2
I use MacOS. From what I saw from web search, the build is not supported on MacOS.
If someone managed to install on Mac, please let me know.
On Fri, Nov 22, 2019 at 10:03 AM Hunt, James O james.o.hunt@intel.com wrote:
Hi Ted,
Welcome to the list. Have you followed the instructions in the Developer Guide [1]? If that doesn't work, please raise a GitHub issue with more details of your environment.
Cheers,
James
[1] - https://github.com/kata-containers/documentation/blob/master/Developer-Guide...
Le ven. 22 nov. 2019 à 17:55, Ted Yu yuzhihong@gmail.com a écrit :
Hi, When I import kata-container runtime to Goland, there were unrecognized imports. e.g.
opentracing "github.com/opentracing/opentracing-go" "github.com/pkg/errors" "github.com/sirupsen/logrus"
I have enabled Go Modules preference.
If someone uses Goland for development, please share your setup.
Thanks
kata-dev mailing list kata-dev@lists.katacontainers.io http://lists.katacontainers.io/cgi-bin/mailman/listinfo/kata-dev
-- James
https://katacontainers.io/ | https://github.com/kata-containers https://github.com/clearcontainers Open Source Technology Center Intel Corporation (UK) Ltd. - Co. Reg. #1134945 - Pipers Way, Swindon SN3 1RJ.
I wonder if Rico is on the mailing list – I think Rico was the only one trying to support kata on mac before… let me hit slack and ask at least..
G
From: Ted Yu [mailto:yuzhihong@gmail.com] Sent: Friday, November 22, 2019 6:18 PM To: Hunt, James O james.o.hunt@intel.com Cc: kata-dev kata-dev@lists.katacontainers.io Subject: Re: [kata-dev] importing kata-container runtime to Goland
Thanks for the reply.
When I execute make, I see the following:
../../go-workspace/pkg/mod/github.com/opencontainers/runc@v0.0.0-20170926091510-0351df1c5a66/libcontainer/utils/utils_unix.go:39:62http://github.com/opencontainers/runc@v0.0.0-20170926091510-0351df1c5a66/libcontainer/utils/utils_unix.go:39:62: undefined: unix.SOCK_CLOEXEC # github.com/kata-containers/runtime/pkg/signalshttp://github.com/kata-containers/runtime/pkg/signals ../../go-workspace/pkg/mod/github.com/kata-containers/runtime@v0.0.0-20191122173334-fea166d8ebb8/pkg/signals/signals.go:35:2http://github.com/kata-containers/runtime@v0.0.0-20191122173334-fea166d8ebb8/pkg/signals/signals.go:35:2: undefined: syscall.SIGSTKFLT # github.com/containerd/cgroupshttp://github.com/containerd/cgroups ../../go-workspace/pkg/mod/github.com/containerd/cgroups@v0.0.0-20190717030353-c4b9ac5c7601/memory.go:179:33http://github.com/containerd/cgroups@v0.0.0-20190717030353-c4b9ac5c7601/memory.go:179:33: undefined: unix.SYS_EVENTFD2 ../../go-workspace/pkg/mod/github.com/containerd/cgroups@v0.0.0-20190717030353-c4b9ac5c7601/memory.go:179:55http://github.com/containerd/cgroups@v0.0.0-20190717030353-c4b9ac5c7601/memory.go:179:55: undefined: unix.EFD_CLOEXEC make: *** [/Users/yute/t-k-runtime/kata-runtime] Error 2
I use MacOS. From what I saw from web search, the build is not supported on MacOS.
If someone managed to install on Mac, please let me know.
On Fri, Nov 22, 2019 at 10:03 AM Hunt, James O <james.o.hunt@intel.commailto:james.o.hunt@intel.com> wrote: Hi Ted,
Welcome to the list. Have you followed the instructions in the Developer Guide [1]? If that doesn't work, please raise a GitHub issue with more details of your environment.
Cheers,
James
[1] - https://github.com/kata-containers/documentation/blob/master/Developer-Guide...
Le ven. 22 nov. 2019 à 17:55, Ted Yu <yuzhihong@gmail.commailto:yuzhihong@gmail.com> a écrit : Hi, When I import kata-container runtime to Goland, there were unrecognized imports. e.g.
opentracing "github.com/opentracing/opentracing-gohttp://github.com/opentracing/opentracing-go" "github.com/pkg/errorshttp://github.com/pkg/errors" "github.com/sirupsen/logrushttp://github.com/sirupsen/logrus"
I have enabled Go Modules preference.
If someone uses Goland for development, please share your setup.
Thanks _______________________________________________ kata-dev mailing list kata-dev@lists.katacontainers.iomailto:kata-dev@lists.katacontainers.io http://lists.katacontainers.io/cgi-bin/mailman/listinfo/kata-dev
-- James --- https://katacontainers.io/ | https://github.com/kata-containershttps://github.com/clearcontainers Open Source Technology Center Intel Corporation (UK) Ltd. - Co. Reg. #1134945 - Pipers Way, Swindon SN3 1RJ. --------------------------------------------------------------------- Intel Corporation (UK) Limited Registered No. 1134945 (England) Registered Office: Pipers Way, Swindon SN3 1RJ VAT No: 860 2173 47
This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.
participants (3)
-
Hunt, James O
-
Ted Yu
-
Whaley, Graham