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

Package is broken with the latest commit #375

Closed
elgatito opened this issue Mar 28, 2020 · 1 comment · Fixed by #378
Closed

Package is broken with the latest commit #375

elgatito opened this issue Mar 28, 2020 · 1 comment · Fixed by #378

Comments

@elgatito
Copy link

Hello @elazarl ,

I am trying to install the latest version of this package on go-1.14 and go-1.14.1 and getting error:

$ go get -u github.com/elazarl/goproxy
go: downloading github.com/elazarl/goproxy v0.0.0-20200315184450-1f3cb6622dad
go: github.com/elazarl/goproxy upgrade => v0.0.0-20200315184450-1f3cb6622dad
go: downloading golang.org/x/crypto v0.0.0-20200128174031-69ecbb4d6d5d
go: downloading golang.org/x/net v0.0.0-20191126235420-ef20fe5d7933
go: downloading golang.org/x/text v0.3.3-0.20191031172631-4b67af870c6f
go: downloading golang.org/x/sys v0.0.0-20200201011859-915c9c3d4ccf
go: golang.org/x/text upgrade => v0.3.2
go: golang.org/x/sys upgrade => v0.0.0-20200327173247-9dae0f8f5775
go: golang.org/x/crypto upgrade => v0.0.0-20200323165209-0ec3e9974c59
go: golang.org/x/net upgrade => v0.0.0-20200324143707-d3edc9973b7e
go: downloading golang.org/x/crypto v0.0.0-20200323165209-0ec3e9974c59
go: downloading golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e
go: downloading golang.org/x/sys v0.0.0-20200327173247-9dae0f8f5775
# github.com/elazarl/goproxy
../../../../pkg/mod/github.com/elazarl/goproxy@v0.0.0-20200315184450-1f3cb6622dad/ctx.go:46:2: not enough arguments to return
../../../../pkg/mod/github.com/elazarl/goproxy@v0.0.0-20200315184450-1f3cb6622dad/ctx.go:46:12: ctx.proxy undefined (type *ProxyCtx has no field or method proxy, but does have Proxy)
../../../../pkg/mod/github.com/elazarl/goproxy@v0.0.0-20200315184450-1f3cb6622dad/ctx.go:50:5: ctx.proxy undefined (type *ProxyCtx has no field or method proxy, but does have Proxy)
../../../../pkg/mod/github.com/elazarl/goproxy@v0.0.0-20200315184450-1f3cb6622dad/ctx.go:62:8: ctx.proxy undefined (type *ProxyCtx has no field or method proxy, but does have Proxy)
../../../../pkg/mod/github.com/elazarl/goproxy@v0.0.0-20200315184450-1f3cb6622dad/https.go:76:69: unknown field 'proxy' in struct literal of type ProxyCtx (but does have Proxy)
../../../../pkg/mod/github.com/elazarl/goproxy@v0.0.0-20200315184450-1f3cb6622dad/https.go:199:77: unknown field 'proxy' in struct literal of type ProxyCtx (but does have Proxy)
../../../../pkg/mod/github.com/elazarl/goproxy@v0.0.0-20200315184450-1f3cb6622dad/proxy.go:105:70: unknown field 'proxy' in struct literal of type ProxyCtx (but does have Proxy)


@baislsl
Copy link

baislsl commented Mar 29, 2020

Hi @elazarl , same problem when I use the latest version of this package. I submit a pull request #378 to fix it.

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

Successfully merging a pull request may close this issue.

2 participants