Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions internal/cmd/release/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ func (c *command) calculateNewReleasePlugins(ctx context.Context, currentRelease
// Found existing release - only rebuild if changed image digest or buf.plugin.yaml digest
if pluginRelease.ImageID != imageID || pluginRelease.PluginYAMLDigest != pluginYamlDigest {
downloadURL := c.pluginDownloadURL(plugin, releaseName)
zipDigest, err := createPluginZip(ctx, c.logger, tmpDir, plugin, registryImage, imageID)
zipDigest, err := createPluginZip(ctx, c.logger, tmpDir, plugin, registryImage)
if err != nil {
return err
}
Expand Down Expand Up @@ -438,7 +438,6 @@ func createPluginZip(
basedir string,
plugin *plugin.Plugin,
registryImage string,
imageID string,
) (string, error) {
if err := pullImage(ctx, logger, registryImage); err != nil {
return "", err
Expand All @@ -453,7 +452,7 @@ func createPluginZip(
logger.WarnContext(ctx, "failed to remove tmp dir", slog.String("dir", pluginTempDir), slog.Any("error", err))
}
}()
if err := saveImageToDir(ctx, imageID, pluginTempDir); err != nil {
if err := saveImageToDir(ctx, registryImage, pluginTempDir); err != nil {
return "", err
}
logger.InfoContext(ctx, "creating zip", slog.String("name", zipName))
Expand Down