srcrs / MagicBox

一个基于chrome的自动执行定时任务,目前支持B站、v2ex、hostloc、jd等网站的签到
https://blog.lass.cc/posts/how-use-magic-box-v2/
MIT License
390 stars 34 forks source link

克隆拉取提示错误 #19

Open 125540947 opened 5 months ago

125540947 commented 5 months ago

Cloning into 'MagicBox'... The authenticity of host 'github.com (20.205.243.166)' can't be established. ECDSA key fingerprint is SHA256:p2QAMXNIC1TJYWeIOttrVc98/R1BUFWu3/LiyKgUfQM. Are you sure you want to continue connecting (yes/no/[fingerprint])? yes Warning: Permanently added 'github.com,20.205.243.166' (ECDSA) to the list of known hosts. git@github.com: Permission denied (publickey). fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.

srcrs commented 5 months ago

检查下本地网络或者docker环境,我这里使用play with docker是可以正常拉取镜像的 截屏2024-04-04 23 07 46

125540947 commented 5 months ago

我两台VPS及本地电脑都拉取失败

125540947 commented 5 months ago

[root@iZ7xvj1stqc9xhxuidnxxbZ ~]# git clone git@github.com:srcrs/MagicBox.git Cloning into 'MagicBox'... Permission denied (publickey). fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists. [root@iZ7xvj1stqc9xhxuidnxxbZ ~]# 腾讯云

srcrs commented 5 months ago

抱歉,看错了,克隆仓库在没有密钥的情况下,需要使用http方式拉取

git clone https://github.com/srcrs/MagicBox.git
125540947 commented 5 months ago

=> [server builder 3/4] WORKDIR /src 0.1s => ERROR [server builder 4/4] RUN go build -ldflags "-s -w" -o ./bin/MagicBox . 270.7s => CANCELED [server stage-1 2/4] RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates netbase && rm -rf /var/lib/apt/lists/ && apt-get autoremove -y && apt-get autoclean -y 247.3s

[server builder 4/4] RUN go build -ldflags "-s -w" -o ./bin/MagicBox .: 0.328 go: downloading github.com/tidwall/gjson v1.17.1 0.330 go: downloading github.com/DataHenHQ/useragent v0.1.0 编译出现这个