hybridgroup / gocv

Go package for computer vision using OpenCV 4 and beyond. Includes support for DNN, CUDA, OpenCV Contrib, and OpenVINO.
https://gocv.io
Other
6.64k stars 863 forks source link

go mod doesn't work? #860

Open knoguchi opened 3 years ago

knoguchi commented 3 years ago

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.

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  "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>
deadprogram commented 3 years ago

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.