Tianon Gravi 8 жил өмнө
parent
commit
2a863261a8

+ 2 - 1
bashbrew/go/src/bashbrew/cmd-put-shared.go

@@ -90,9 +90,10 @@ func cmdPutShared(c *cli.Context) error {
 		// turn them into SharedTagGroup objects so all manifest-tool invocations can be handled by a single process/loop
 		sharedTagGroups := []manifest.SharedTagGroup{}
 		for _, entry := range r.Entries() {
+			entryCopy := entry
 			sharedTagGroups = append(sharedTagGroups, manifest.SharedTagGroup{
 				SharedTags: entry.Tags,
-				Entries:    []*manifest.Manifest2822Entry{&entry},
+				Entries:    []*manifest.Manifest2822Entry{&entryCopy},
 			})
 		}