antchfx / htmlquery

htmlquery is golang XPath package for HTML query.
https://github.com/antchfx/xpath
MIT License
738 stars 74 forks source link

go: github.com/antchfx/htmlquery: invalid github.com import path "github.com/antchfx" #57

Closed sputnick-dev closed 1 year ago

sputnick-dev commented 1 year ago

When I run

go get github.com/antchfx/htmlquery

I get

go: github.com/antchfx/htmlquery: invalid github.com import path "github.com/antchfx"

go.mod:

module github.com/antchfx/htmlquery

go 1.18
zhengchun commented 1 year ago

It works for me.

go get -v github.com/antchfx/htmlquery

go get: added github.com/antchfx/htmlquery v1.2.6
go get: added github.com/antchfx/xpath v1.2.2
go get: added github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da
go get: added golang.org/x/net v0.5.0
go get: added golang.org/x/text v0.6.0
zhengchun commented 1 year ago

go.mod

go 1.17

require (
    github.com/antchfx/htmlquery v1.2.6 // indirect
    github.com/antchfx/xpath v1.2.2 // indirect
    github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
    golang.org/x/net v0.5.0 // indirect
    golang.org/x/text v0.6.0 // indirect
)
zhengchun commented 1 year ago

I guess you should change your module name module github.com/antchfx/htmlquery to the another name. It may conflict with htmlquery

sputnick-dev commented 1 year ago

Oops, sorry, yes