Skip to content

有没有指导一下编译遇到的问题 #22

Description

@GLingDroid

我是在windows下用docker装了个ubuntu弄的,
按照编译步骤那里,编译 golang 工具链 和 编译 bogo 都通过了,
编译 goproxy 时
awk那里开始出现问题,
一个是

github.com/phuslu/glog (download)
# cd /usr/src/goproxy/gopath/src/github.com/phuslu/glog; git pull --ff-only
fatal: Not possible to fast-forward, aborting.

一个是
golang.org/x/那边几个库版本对不上

然后尝试了下go build -v
出现2种错误

具体请看


root@343beab498c5:/usr/src/goproxy/goproxy# awk 'match($1, /"((github\.com|golan
g\.org|gopkg\.in)\/.+)"/) {if (!seen[$1]++) {gsub("\"", "", $1); print $1}}' $(f
ind . -name "*.go") | xargs -n1 -i go get -v -u {}
github.com/cloudflare/golibs (download)
github.com/phuslu/glog (download)
# cd /usr/src/goproxy/gopath/src/github.com/phuslu/glog; git pull --ff-only
fatal: Not possible to fast-forward, aborting.
package github.com/phuslu/glog: exit status 128
github.com/wangtuanjie/ip17mon (download)
github.com/dsnet/compress (download)
github.com/phuslu/net (download)
package golang.org/x/text/secure/bidirule: directory "/usr/src/goproxy/gopath/sr
c/golang.org/x/text/secure/bidirule" is not using a known version control system
package golang.org/x/text/unicode/bidi: directory "/usr/src/goproxy/gopath/src/g
olang.org/x/text/unicode/bidi" is not using a known version control system
package golang.org/x/text/unicode/norm: directory "/usr/src/goproxy/gopath/src/g
olang.org/x/text/unicode/norm" is not using a known version control system
github.com/phuslu/quic-go (download)
github.com/hashicorp/golang-lru (download)
github.com/lucas-clemente/aes12 (download)
github.com/lucas-clemente/fnv128a (download)
github.com/lucas-clemente/quic-go-certificates (download)
package golang.org/x/net/http2: directory "/usr/src/goproxy/gopath/src/golang.or
g/x/net/http2" is not using a known version control system
package golang.org/x/net/http2/hpack: directory "/usr/src/goproxy/gopath/src/gol
ang.org/x/net/http2/hpack" is not using a known version control system
package golang.org/x/net/idna: directory "/usr/src/goproxy/gopath/src/golang.org
/x/net/idna" is not using a known version control system
package golang.org/x/net/lex/httplex: directory "/usr/src/goproxy/gopath/src/gol
ang.org/x/net/lex/httplex" is not using a known version control system
package golang.org/x/crypto/ssh: directory "/usr/src/goproxy/gopath/src/golang.o
rg/x/crypto/ssh" is not using a known version control system
package golang.org/x/sys/windows/registry: directory "/usr/src/goproxy/gopath/sr
c/golang.org/x/sys/windows/registry" is not using a known version control system
package golang.org/x/sys/unix: directory "/usr/src/goproxy/gopath/src/golang.org
/x/sys/unix" is not using a known version control system
github.com/juju/ratelimit (download)
github.com/miekg/dns (download)
root@343beab498c5:/usr/src/goproxy/goproxy# go build -v
_/usr/src/goproxy/goproxy/httpproxy/helpers
# _/usr/src/goproxy/goproxy/httpproxy/helpers
httpproxy/helpers/dialer2.go:200:35: not enough arguments in call to net.DialTCP
Context
        have (context.Context, string, nil, *net.TCPAddr)
        want (context.Context, string, *net.TCPAddr, *net.TCPAddr, net.ControlFu
nc)
httpproxy/helpers/dialer2.go:278:33: unknown field 'RequestConnectionIDTruncatio
n' in struct literal of type quic.Config
httpproxy/helpers/dialer2.go:295:36: unknown field 'RequestConnectionIDTruncatio
n' in struct literal of type quic.Config
httpproxy/helpers/dialer2.go:303:36: unknown field 'RequestConnectionIDTruncatio
n' in struct literal of type quic.Config
_/usr/src/goproxy/goproxy/httpproxy/proxy
# _/usr/src/goproxy/goproxy/httpproxy/proxy
httpproxy/proxy/quic.go:41:34: unknown field 'RequestConnectionIDTruncation' in
struct literal of type quic.Config
root@343beab498c5:/usr/src/goproxy/goproxy#

该如何处理呢?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions