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

higress项目执行make build命令,编译报错 fatal: Authentication failed for 'https://github.com/mitchellh/osext/' #804

Closed
llahu opened this issue Jan 25, 2024 · 3 comments · Fixed by #805

Comments

@llahu
Copy link
Contributor

llahu commented Jan 25, 2024

环境
测试环境系统:centos 7.9 Go环境:1.19

问题描述
higress项目下main分支直接执行make build编译报错:
fatal: Authentication failed for 'https://github.com/mitchellh/osext/'

详细信息
`
istio.io/pkg/version.buildStatus=Modified

istio.io/pkg/version.buildTag=v1.3.4-rc.1

istio.io/pkg/version.buildHub=higress-registry.cn-hangzhou.cr.aliyuncs.com/higress
Username for 'https://github.com': llahu
Password for 'https://llahu@github.com':
external/istio/pkg/config/xds/filter_types.gen.go:21:2: github.com/distribution/distribution/v3@v3.0.0-20221201083218-92d136e113cf requires
github.com/mitchellh/osext@v0.0.0-20151018003038-5e2d6d41470f: invalid version: git ls-remote -q origin in /gopath/pkg/mod/cache/vcs/94ed57c5b21c953d93b47487113db43a5c9b69fd990329ec70dc77348c4dd443: exit status 128:
fatal: Authentication failed for 'https://github.com/mitchellh/osext/'
external/istio/pkg/config/xds/filter_types.gen.go:22:2: github.com/distribution/distribution/v3@v3.0.0-20221201083218-92d136e113cf requires
github.com/mitchellh/osext@v0.0.0-20151018003038-5e2d6d41470f: invalid version: git ls-remote -q origin in /gopath/pkg/mod/cache/vcs/94ed57c5b21c953d93b47487113db43a5c9b69fd990329ec70dc77348c4dd443: exit status 128:
fatal: Authentication failed for 'https://github.com/mitchellh/osext/'
external/istio/pkg/config/xds/filter_types.gen.go:23:2: github.com/distribution/distribution/v3@v3.0.0-20221201083218-92d136e113cf requires
github.com/mitchellh/osext@v0.0.0-20151018003038-5e2d6d41470f: invalid version: git ls-remote -q origin in /gopath/pkg/mod/cache/vcs/94ed57c5b21c953d93b47487113db43a5c9b69fd990329ec70dc77348c4dd443: exit status 128:
fatal: Authentication failed for 'https://github.com/mitchellh/osext/'
external/istio/pkg/config/xds/filter_types.gen.go:24:2: github.com/distribution/distribution/v3@v3.0.0-20221201083218-92d136e113cf requires
github.com/mitchellh/osext@v0.0.0-20151018003038-5e2d6d41470f: invalid version: git ls-remote -q origin in /gopath/pkg/mod/cache/vcs/94ed57c5b21c953d93b47487113db43a5c9b69fd990329ec70dc77348c4dd443: exit status 128:
fatal: Authentication failed for 'https://github.com/mitchellh/osext/'
external/istio/pkg/config/xds/filter_types.gen.go:35:2: github.com/distribution/distribution/v3@v3.0.0-20221201083218-92d136e113cf requires
github.com/mitchellh/osext@v0.0.0-20151018003038-5e2d6d41470f: invalid version: git ls-remote -q origin in /gopath/pkg/mod/cache/vcs/94ed57c5b21c953d93b47487113db43a5c9b69fd990329ec70dc77348c4dd443: exit status 128:
fatal: Authentication failed for 'https://github.com/mitchellh/osext/'
`

@llahu
Copy link
Contributor Author

llahu commented Jan 25, 2024

当前版本是需要指定GORPOXY变量编译,命令如下:
GOPROXY='https://proxy.golang.org,direct/' make build

@johnlanni
Copy link
Collaborator

export GOPROXY ?= https://proxy.golang.com.cn,direct

@llahu 可以提个PR改一下这里,之前为了方便国内用户不用加速,但现在国内的goproxy没有缓存这个库,就没意义了,恢复到国外的goproxy吧

@llahu
Copy link
Contributor Author

llahu commented Jan 25, 2024

export GOPROXY ?= https://proxy.golang.com.cn,direct

@llahu 可以提个PR改一下这里,之前为了方便国内用户不用加速,但现在国内的goproxy没有缓存这个库,就没意义了,恢复到国外的goproxy吧

@johnlanni 好,我提下

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

Successfully merging a pull request may close this issue.

2 participants