Colly: v2.0.0 not avalible

Created on 13 Dec 2019  路  13Comments  路  Source: gocolly/colly

The new version v2.0.0 is unavailable at the moment:

$ go get -u github.com/gocolly/colly/...
$ go list -m all | grep colly
github.com/gocolly/colly v1.2.0

Most helpful comment

need release new 2.0.1 version

All 13 comments

This isn't good. Do you have any idea why?

The command is run in a project that utilizes go module, a feature I'm not familiar with yet, with go version go1.13.5.

https://proxy.golang.org/github.com/gocolly/colly/@v/v1.info tells
{"Version":"v1.2.0","Time":"2019-02-13T13:16:18Z"}

While https://proxy.golang.org/github.com/gocolly/colly/@v/v2.info returns
not found: module github.com/gocolly/colly: no matching versions for query "v2"

Meta information about v2.0.0 is missing.

This is confirmed with : https://proxy.golang.org/github.com/gocolly/colly/@v/list

v1.0.0
v1.1.0
v1.2.0

The difference between v1.2.0 & v2.0.0 is the presence of the go.mod & go.sum files in v2.0.0.

With go get github.com/gocolly/colly, on my system go.mod contain :

module github.com/gocolly/colly/v2

go 1.12

require (
github.com/PuerkitoBio/goquery v1.5.0
github.com/antchfx/htmlquery v1.0.0
github.com/antchfx/xmlquery v1.0.0
github.com/antchfx/xpath v1.0.0 // indirect
github.com/gobwas/glob v0.2.3
github.com/jawher/mow.cli v1.1.0
github.com/kennygrant/sanitize v1.2.4
github.com/saintfish/chardet v0.0.0-20120816061221-3af4cd4741ca
github.com/temoto/robotstxt v1.1.1
golang.org/x/net v0.0.0-20190724013045-ca1201d0de80
google.golang.org/appengine v1.6.1
)

but there is no v2 directory on GitHub. Reference Go Modules: v2 and Beyond

It works for me with go 1.12:

% mkdir tmp & cd tmp
% GOPATH=`pwd` go get -u github.com/gocolly/colly
% cat src/github.com/gocolly/colly/go.mod
module github.com/gocolly/colly/v2
[..]

same issue锛寃ait for updating

same issue here too:

github.com/x0rzkov/sherlock-gocolly imports
    github.com/gocolly/colly/v2: module github.com/gocolly/colly@latest found (v1.2.0), but does not contain package github.com/gocolly/colly/v2

go version: 1.13

https://github.com/gocolly/colly/blob/v2.0.0/go.mod

This file is supposed to contain module github.com/gocolly/colly/v2, not module github.com/gocolly/colly (which is fixed in master: https://github.com/gocolly/colly/commit/b5c8aaed63d4599b58f875403dcf41fa9523eeb0). That's probably the issue.

$ go get -v github.com/gocolly/colly/[email protected]
go: github.com/gocolly/colly/[email protected]: go.mod has non-.../v2 module path "github.com/gocolly/colly" (and .../v2/go.mod does not exist) at revision v2.0.0
go: error loading module requirements

I found this similar topic in the GoLang git: https://github.com/golang/go/issues/35732

Temporary solved using go get github.com/gocolly/colly@master
Still listed as v1.2.1 but it actually is the latest commit

need release new 2.0.1 version

hi guys, by when can we fix this?

@asciimoo I have the same issue :-(

Hopefully it is fixed by a version bump. Could you please test it?

Sounds good.

$ go get -u github.com/gocolly/colly/...
$ cat $GOPATH/src/github.com/gocolly/colly/go.mod

module github.com/gocolly/colly/v2

go 1.12

require (
.....
)
Was this page helpful?
0 / 5 - 0 ratings

Related issues

peterhellberg picture peterhellberg  路  3Comments

killernova picture killernova  路  6Comments

soanni picture soanni  路  6Comments

CrazyMouse picture CrazyMouse  路  3Comments

duynb picture duynb  路  3Comments