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

compile error repository 'https://github.com/xo/xoutil/' not found #1360

Closed
YangKeao opened this issue May 12, 2021 · 2 comments · Fixed by #1362
Closed

compile error repository 'https://github.com/xo/xoutil/' not found #1360

YangKeao opened this issue May 12, 2021 · 2 comments · Fixed by #1362
Assignees
Labels
type/bug Categorizes issue as related to a bug.
Milestone

Comments

@YangKeao
Copy link
Member

Bug Report

Please answer these questions before submitting your issue. Thanks!

  1. What did you do?
make tiup
  1. What did you expect to see?

Compile successfully.

  1. What did you see instead?
GO111MODULE=on CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build  -ldflags '-w -s -X "github.com/pingcap/tiup/pkg/version.GitHash=2afe65d" -X "github.com/pingcap/tiup/pkg/version.GitRef=patch-1"' -o bin/tiup
go: github.com/xo/usql@v0.7.8 requires
	github.com/xo/xoutil@v0.0.0-20171112033149-46189f4026a5: invalid version: git fetch -f origin refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in /home/yangkeao/go/pkg/mod/cache/vcs/076de485f6bfc7a8e444ab6a676f8b3bebc02186cfe92720dd78cec82eafcc82: exit status 128:
	remote: Repository not found.
	fatal: repository 'https://github.com/xo/xoutil/' not found
make: *** [Makefile:54: tiup] Error 1

This repo doesn't exist, and GitHub returns 404 for it.

  1. What version of TiUP are you using (tiup --version)?

Don't know, as it failed to compile...

@YangKeao YangKeao added the type/bug Categorizes issue as related to a bug. label May 12, 2021
@AstroProfundis AstroProfundis self-assigned this May 13, 2021
@AstroProfundis
Copy link
Contributor

While I'm working on updating the depends, build of TiUP and components is still possible if you use a Go proxy that cached the xo/xoutil package. Github Actions is one of the examples.

@AstroProfundis
Copy link
Contributor

I've also restored a copy of the github.com/xo/xoutil to my personal repo, for anyone wish to build legacy TiUP codes and fail to retrieve the package from local goproxy, please apply the following patch to your go.mod and go.sum files.

diff --git a/go.mod b/go.mod
index 53e1e146..46e3effa 100644
--- a/go.mod
+++ b/go.mod
@@ -79,4 +79,7 @@ require (
        software.sslmate.com/src/go-pkcs12 v0.0.0-20201103104416-57fc603b7f52
 )
 
-replace gopkg.in/yaml.v2 => github.com/july2993/yaml v0.0.0-20200423062752-adcfa5abe2ed
+replace (
+       github.com/xo/xoutil => github.com/AstroProfundis/xoutil v0.0.0-20210513105001-1eafd6262bde
+       gopkg.in/yaml.v2 => github.com/july2993/yaml v0.0.0-20200423062752-adcfa5abe2ed
+)
diff --git a/go.sum b/go.sum
index b1d21ebf..cabf6ed9 100644
--- a/go.sum
+++ b/go.sum
@@ -26,6 +26,7 @@ github.com/AstroProfundis/sysinfo v0.0.0-20210201035811-eb96b87c86b3 h1:JkHFCvR7
 github.com/AstroProfundis/sysinfo v0.0.0-20210201035811-eb96b87c86b3/go.mod h1:4m15VhW6ZffaqJNAK/HtN3Qvf97aCe1T39u3UXaA2lA=
 github.com/AstroProfundis/tabby v1.1.1-color h1:gi/Fs4W2KVcC1m29lqa39tDnsGfZG/PYvZmwOhAH5m0=
 github.com/AstroProfundis/tabby v1.1.1-color/go.mod h1:Wcm+uinH1saEOFGLK2LdY37lAOts8HLevz64Y3y3M3Q=
+github.com/AstroProfundis/xoutil v0.0.0-20210513105001-1eafd6262bde/go.mod h1:VEjJr4Je44Fg0zxMZaSgpCyp3QJxcoEIxtl5JqMtNrk=
 github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=
 github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
 github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
@@ -956,7 +957,6 @@ github.com/xo/terminfo v0.0.0-20190125114736-1a4775eeeb62 h1:GW+Rt02+4bpiSsn4Km9
 github.com/xo/terminfo v0.0.0-20190125114736-1a4775eeeb62/go.mod h1:6Yhx5ZJl5942QrNRWLwITArVT9okUXc5c3brgWJMoDc=
 github.com/xo/usql v0.7.8 h1:+6AvDR/UYeKvzDs2ILWvGXKCfbmGkJPR7i4mnUhWS5E=
 github.com/xo/usql v0.7.8/go.mod h1:lmjb2xMb8yY1le5mlSvOSat4EoMM2HseDhVIPKAhAps=
-github.com/xo/xoutil v0.0.0-20171112033149-46189f4026a5/go.mod h1:GngMELAA694UVFs172352HAA2KQEf4XuETgWmL4XSoY=
 github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q=
 github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
 github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Categorizes issue as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants