Answer the question
In order to leave comments, you need to log in
Why docker crashes with "unknown revision" error when building?
The problem is, when building the backend on the local computer, the docker build fails with an error, although this revision is available in the repository.
Answer the question
In order to leave comments, you need to log in
maybe there is a revision, but the path is not registered in PATH or is it registered to another version by default?
If the repository is private, then you need to make sure that the GOPRIVATE variable is specified in the container assembly.
For example:
RUN go env -w GOPRIVATE="gitlab.com/username1/*,gitlab.com/username2/*" && \
go build
*
, you can specify specific repositories.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question