7sDream / rikka

A simple image share system in go.
https://rikka.7sdre.am
MIT License
207 stars 35 forks source link

Unable to build. #14

Closed mzch closed 1 year ago

mzch commented 2 years ago

Run go build . and the following error occurred.

go: github.com/tencentyun/go-sdk@v2.0.4+incompatible: reading github.com/tencentyun/go-sdk/go.mod at revision v2.0.4: git ls-remote -q origin in /srv/rikka/.go/pkg/mod/cache/vcs/4ef3d9b1914ec4655ef77fdd811acb67b92192d4de946114cd185492d0fea3f3: exit status 128:
    fatal: could not read Username for 'https://github.com': terminal prompts disabled
Confirm the import path was entered correctly.
If this is a private repository, see https://golang.org/doc/faq#git_https for additional information.
go: downloading github.com/satori/go.uuid v1.2.0
go: downloading github.com/tencentyun/image-go-sdk v2.0.4+incompatible
go: downloading github.com/tencentyun/cos-go-sdk-v5 v0.7.25
go: downloading github.com/upyun/go-sdk/v3 v3.0.2
go: downloading github.com/qiniu/go-sdk/v7 v7.9.5
go: downloading github.com/google/go-querystring v1.1.0
go: downloading github.com/mozillazg/go-httpheader v0.3.0
go: downloading golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
go: github.com/tencentyun/go-sdk@v2.0.4+incompatible: reading github.com/tencentyun/go-sdk/go.mod at revision v2.0.4: git ls-remote -q origin in /srv/rikka/.go/pkg/mod/cache/vcs/4ef3d9b1914ec4655ef77fdd811acb67b92192d4de946114cd185492d0fea3f3: exit status 128:
    fatal: could not read Username for 'https://github.com': terminal prompts disabled
Confirm the import path was entered correctly.
If this is a private repository, see https://golang.org/doc/faq#git_https for additional information.
7sDream commented 2 years ago

Some qcloud cos/image lib repo has been deleted.

You can modify the code(remove thoose tencent plugin, or update to use new official lib)then build yourself, or use prebuilt Docker image if you just want to give this project a try.

7sDream commented 1 year ago

I replaced github.com/tencentyun/image-go-sdk with a existing fork

It compiles, but I didn't test if this plugin still works now.