Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot find package "golang.org/x/net/lex/httplex" #245

Closed
MeStrak opened this issue May 9, 2018 · 7 comments
Closed

cannot find package "golang.org/x/net/lex/httplex" #245

MeStrak opened this issue May 9, 2018 · 7 comments

Comments

@MeStrak
Copy link

MeStrak commented May 9, 2018

I'm trying to run Ponzu in Windows. I've just downloaded and installed Go (I'm totally new to Go) and downloaded the ponzu repository with go get, now I'm stuck trying to do the build.

When I run ponzu build I get an error message: cannot find package "golang.org/x/net/lex/httplex"

I tried to specifically get that package, but it can't be found. After some searching I came across the following post which says that it has been merged into httpguts: https://groups.google.com/forum/#!topic/golang-nuts/2crpmllOyOA

go version go1.10.2 windows/amd64

Can you help? Am I doing something silly?

@MeStrak MeStrak changed the title Can cannot find package "golang.org/x/net/lex/httplex" May 9, 2018
@nilslice
Copy link
Contributor

nilslice commented May 9, 2018

@MeStrak - that is a new one.. after some digging around, it appears that the vendored http2 package is importing the golang.org/x/net/httplex package, which was relocated in a recent commit:
golang/net@cbb82b5

I will need to update the vendored http2 package so that it no longer imports this. Or, if that doesn't work I'll need to see where Ponzu uses the older http2 stuff from golang.org/x/net packages.

Unfortunately, I don't know that there is a quick fix here, but will look into it ASAP and let you know once it is resolved.

@MeStrak
Copy link
Author

MeStrak commented May 9, 2018

Thanks nilslice. I've just found a possible quick fix - downloaded the github commit for Go net from 02 May before httplex was merged with httpguts and added that folder. It allowed me to compile and I can login to the admin interface at least. I'm doing some more testing now.

As I don't know anything about go, I don't know if the fact that it compiled means that it should be ok, or if I might encounter an error when it tries to run some of the code in httplex.

@nilslice
Copy link
Contributor

nilslice commented May 9, 2018

@MeStrak - that is a good quickfix, I'm glad you have it compiling. You should be fine, as long as you don't update that package you downloaded with the non-master commit. I will still track this down and push up a fix, so I'll leave this issue open until that is solved so anyone else who runs into this problem can see it is being tended to.

@nilslice
Copy link
Contributor

nilslice commented May 9, 2018

@MeStrak - if you don't mind, please run:
go get -u github.com/ponzu-cms/ponzu/...

and try again - the recent merge should solve this. thanks!

@MeStrak
Copy link
Author

MeStrak commented May 9, 2018

Thanks, working now!

@sarinkejohn
Copy link

am getting this error..
github.com/fabcar/go imports
github.com/hyperledger/fabric-chaincode-go/pkg/cid imports
crypto/x509 imports
net imports
golang_org/x/net/route: malformed module path "golang_org/x/net/route": missing dot in first path element
github.com/fabcar/go imports
github.com/hyperledger/fabric-protos-go/peer imports
google.golang.org/grpc imports
net/http imports
golang_org/x/net/http2/hpack: malformed module path "golang_org/x/net/http2/hpack": missing dot in first path element
github.com/fabcar/go imports
github.com/hyperledger/fabric-protos-go/peer imports
google.golang.org/grpc imports
net/http imports
golang_org/x/net/lex/httplex: malformed module path "golang_org/x/net/lex/httplex": missing dot in first path element
~/Project/BasicNetwork-2.0
Finished vendoring Go dependencies

@MeStrak
Copy link
Author

MeStrak commented Jul 9, 2021

@sarinkejohn #349

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants