I am getting below error module declares its path as "" but was required as "b" in golang. I running go version 1.18
/home/ravi/goprog/hello>go mod init goprog/hello
go: creating new go.mod: module goprog/hello
go: to add module requirements and sums:
go mod tidy
/home/ravi/goprog/hello>go mod tidy
go: finding module for package github.com/o-ran-sc/ric-plt-xapp-frame/pkg/clientapi/common
go: downloading github.com/o-ran-sc/ric-plt-xapp-frame v0.9.14
go: found github.com/o-ran-sc/ric-plt-xapp-frame/pkg/clientapi/common in github.com/o-ran-sc/ric-plt-xapp-frame v0.9.14
go: goprog/hello imports
github.com/o-ran-sc/ric-plt-xapp-frame/pkg/clientapi/common: github.com/o-ran-sc/ric-plt-xapp-frame@v0.9.14: parsing go.mod:
module declares its path as: gerrit.o-ran-sc.org/r/ric-plt/xapp-frame
but was required as: github.com/o-ran-sc/ric-plt-xapp-frame
/home/ravi/goprog/hello>
I have shown my code contents below
/home/ravi/goprog/hello>cat go.mod
module goprog/hello
go 1.18
/home/ravi/goprog/hello>
/home/ravi/goprog/hello>cat hello.go
package main
import (
"fmt"
apicommon "github.com/o-ran-sc/ric-plt-xapp-frame/pkg/clientapi/common"
"hello/morestrings"
)
func main() {
fmt.Println(morestrings.ReverseRunes("!oG ,olleH"))
}
/home/ravi/goprog/hello>go version
go version go1.18.1 linux/amd64
/home/ravi/goprog/hello>