Skip to content

Commit

Permalink
fix for sporadic porch crash during new package revision
Browse files Browse the repository at this point in the history
  • Loading branch information
sriharshabm committed Dec 12, 2024
1 parent 72b00ee commit cc610c5
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,8 @@ func (r *PackageVariantReconciler) isUpToDate(pv *api.PackageVariant, downstream
// will always be a published revision, so we will need to do an update.
return false
}
currentUpstreamRevision := upstreamLock.Git.Ref[lastIndex+1:]
return currentUpstreamRevision == pv.Spec.Upstream.Revision
}

func (r *PackageVariantReconciler) copyPublished(ctx context.Context,
Expand Down

0 comments on commit cc610c5

Please sign in to comment.