Skip to content

Commit 0434365

Browse files
feat: store os/arch as metadata
1 parent 965b1d1 commit 0434365

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

internal/server/handler_batch.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ func (s *Server) batchGetPlugins(w http.ResponseWriter, r *http.Request) {
163163
return
164164
}
165165

166-
s.log.Infof("plugin archive %s not found, creating...", archiveKey)
166+
s.log.Infof("plugin archive %s not found, creating (%d plugins for %s)...", archiveKey, len(batchResponse.Plugins), batchResponse.GetOSArch())
167167
tgzFileName, tgzChecksum, err := batch.DownloadFilesAndTarGz(r.Context(), batchResponse)
168168
if err != nil {
169169
s.writeJSONError(w, r, http.StatusInternalServerError, err, "could not create plugin archive")
@@ -185,6 +185,8 @@ func (s *Server) batchGetPlugins(w http.ResponseWriter, r *http.Request) {
185185
Metadata: map[string]string{
186186
"checksum": tgzChecksum,
187187
"hash": batchResponse.DownloadHash,
188+
"os": batchResponse.OS,
189+
"arch": batchResponse.Arch,
188190
},
189191
})
190192
if closeErr := tarFile.Close(); closeErr != nil {

0 commit comments

Comments
 (0)