Docker 镜像构建失败:go mod 下载:阅读 https://api.bitbucket.org/2.0/repositories/***/***?fields=scm: 404 Not Found

发布于 2025-01-16 21:17:34 字数 295 浏览 1 评论 0原文

Docker镜像的构建刚刚开始失败。昨天还在工作。

这是出现的错误:

Step 14/31 : RUN go mod download
 ---> Running in 9dcd36a5e81b
go mod download: reading https://api.bitbucket.org/2.0/repositories/***/***?fields=scm: 404 Not Found

注意:由于隐私原因,*** 被替换为工作区/项目名称和存储库名称。

Building of Docker image started to fail just now. It was working yesterday.

This is the error coming:

Step 14/31 : RUN go mod download
 ---> Running in 9dcd36a5e81b
go mod download: reading https://api.bitbucket.org/2.0/repositories/***/***?fields=scm: 404 Not Found

Note: *** is replaced for workspace/project name and repository name due to privacy.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

り繁华旳梦境 2025-01-23 21:17:34

将基础镜像中的 go 版本从 FROM golang:1.17.3-alpine as builder 更新为 FROM golang:1.17.8-alpine as builder 修复了该问题。

Updating the go version in the base image from FROM golang:1.17.3-alpine as builder to FROM golang:1.17.8-alpine as builder fixed the issue.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文