From 0e5bb665164f875f0a39a50cc5bf9166e9a0a75c Mon Sep 17 00:00:00 2001 From: Achilleas Koutsou Date: Mon, 31 Jan 2022 19:33:49 +0100 Subject: [PATCH] cloudapi: small comment for readability Comment the code that reads the user-defined repositories to explaine what's happening. --- internal/cloudapi/v2/v2.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/cloudapi/v2/v2.go b/internal/cloudapi/v2/v2.go index cc814e54b..daba9f9f6 100644 --- a/internal/cloudapi/v2/v2.go +++ b/internal/cloudapi/v2/v2.go @@ -205,6 +205,8 @@ func (h *apiHandlers) PostCompose(ctx echo.Context) error { } } + // add the user-defined repositories only to the depsolve job for the + // payload (the packages for the final image) var payloadRepositories []Repository if request.Customizations != nil && request.Customizations.PayloadRepositories != nil { payloadRepositories = *request.Customizations.PayloadRepositories