Open knoguchi opened 3 years ago
My Golang project uses go module.
go get -u -d gocv.io/x/gocv does not seem to work.
go get -u -d gocv.io/x/gocv
I had to put replace to point the actual site in go.mod to make it work.
replace
require gocv.io/x/gocv v0.27.0 replace gocv.io/x/gocv v0.27.0 => github.com/hybridgroup/gocv v0.27.0
Is this expected?
I don't know much about go get but testing using curl got the following content. It seems reasonable.
curl
% curl "https://gocv.io/x/gocv/?go-get=1" <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <meta name="go-import" content="gocv.io/x/gocv git https://github.com/hybridgroup/gocv"> <meta name="go-source" content="gocv.io/x/gocv _ https://github.com/hybridgroup/gocv/tree/master{/dir} https://github.com/hybridgroup/gocv/blob/master{/dir}/{file}#L{line}"> <meta http-equiv="refresh" content="0; url=https://gocv.io/"> </head> <body> Nothing to see here; <a href="https://gocv.io/">move along</a>. </body>
Not sure what your exact issue is. However to clarify, I use Go modules with GoCV in many projects and do not have the replace you put in.
My Golang project uses go module.
go get -u -d gocv.io/x/gocv
does not seem to work.I had to put
replace
to point the actual site in go.mod to make it work.Is this expected?
I don't know much about go get but testing using
curl
got the following content. It seems reasonable.