R
R
Roman Khodakovsky2021-04-20 16:06:15
go
Roman Khodakovsky, 2021-04-20 16:06:15

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.
607ed182c0501120412928.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vadim, 2021-04-20
@Viji

maybe there is a revision, but the path is not registered in PATH or is it registered to another version by default?

R
Romses Panagiotis, 2021-04-20
@romesses

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

Instead *, you can specify specific repositories.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question