Failure in importing gomemif module #98
Unanswered
nikhil-agarwal-git
asked this question in
Q&A
Replies: 1 comment 2 replies
-
The gomemif is part of submodule
Outside how? Still in GoVPP module or your own Go module? If you intend to use both GoVPP client for VPP API and gomemif, then you should be importing two separate Go modules in your Run these commands to import the modules: go get go.fd.io/govpp@latest
go get go.fd.io/govpp/extras@latest Please share more of your code or how you are using the GoVPP & gomemif so we can better understand your workflow. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am trying to build icmp_responder_cb.go (https://github.com/FDio/govpp/tree/master/extras/gomemif/examples/icmp_responder_cb) from outside the extras dir structure and facing following go build err.
I basically intent to use gomemif for memif interfacing with VPP in my project. And for the same I was trying to some experiments with existing available example in gomemif package.
On futher investigation, I realised that module name in go.mod present in extras directory does not match with the module github URL path. And if I update the module name to match that of github URL i.e (module go.fd.io/govpp/extras -> module github.com/nikhil-agarwal-git/govpp/extras ), it works fine.
Queries:
Also please suggest if the fix proposed would be ok or there is some gap in my understanding.
Regards
Nikhil Agarwal
Beta Was this translation helpful? Give feedback.
All reactions