mirror of
https://github.com/siderolabs/talos.git
synced 2025-08-26 00:51:11 +02:00
chore: enforce go.mod completeness and better buildkit cache (#520)
Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
This commit is contained in:
parent
9f12352433
commit
9f35d54b11
@ -69,14 +69,15 @@ RUN mkdir -p ${GOPATH}
|
|||||||
ENV GO111MODULE on
|
ENV GO111MODULE on
|
||||||
ENV CGO_ENABLED 0
|
ENV CGO_ENABLED 0
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
|
COPY ./go.mod ./
|
||||||
|
COPY ./go.sum ./
|
||||||
|
RUN go mod download
|
||||||
|
RUN go mod verify
|
||||||
COPY ./cmd ./cmd
|
COPY ./cmd ./cmd
|
||||||
COPY ./pkg ./pkg
|
COPY ./pkg ./pkg
|
||||||
COPY ./internal ./internal
|
COPY ./internal ./internal
|
||||||
COPY ./go.mod ./
|
|
||||||
COPY ./go.sum ./
|
|
||||||
COPY --from=proto /internal/app ./internal/app
|
COPY --from=proto /internal/app ./internal/app
|
||||||
RUN go mod download
|
RUN go list -mod=readonly all
|
||||||
RUN go mod verify
|
|
||||||
|
|
||||||
# The udevd target builds the udevd binary.
|
# The udevd target builds the udevd binary.
|
||||||
|
|
||||||
|
1
go.mod
1
go.mod
@ -59,6 +59,7 @@ require (
|
|||||||
github.com/vishvananda/netlink v1.0.0
|
github.com/vishvananda/netlink v1.0.0
|
||||||
github.com/vishvananda/netns v0.0.0-20180720170159-13995c7128cc // indirect
|
github.com/vishvananda/netns v0.0.0-20180720170159-13995c7128cc // indirect
|
||||||
github.com/vmware/vmw-guestinfo v0.0.0-20170707015358-25eff159a728
|
github.com/vmware/vmw-guestinfo v0.0.0-20170707015358-25eff159a728
|
||||||
|
golang.org/x/net v0.0.0-20190313220215-9f648a60d977
|
||||||
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f // indirect
|
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f // indirect
|
||||||
golang.org/x/sys v0.0.0-20190312061237-fead79001313
|
golang.org/x/sys v0.0.0-20190312061237-fead79001313
|
||||||
golang.org/x/text v0.3.0
|
golang.org/x/text v0.3.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user