Skip to content

Commit

Permalink
Fix double tagging (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
outofforest authored May 7, 2022
1 parent 47f74b9 commit 123cc65
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions infra/storage/zfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,9 @@ func (d *zfsDriver) Tag(ctx context.Context, buildID types.BuildID, tag types.Ta
if err != nil {
return err
}
if existingInfo.BuildID == info.BuildID {
return nil
}
tags := make(types.Tags, 0, len(existingInfo.Tags)-1)
for _, t := range existingInfo.Tags {
if t != tag {
Expand Down

0 comments on commit 123cc65

Please sign in to comment.