You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fmt.Fprintln(os.Stderr, "WARNING: The version of Hauler used to create this store did not include provenance metadata to reconstruct the manifest. Please confirm the generated manifest is accurate.")
74
+
}
75
+
68
76
varimages []manifestImage
69
77
varcharts []manifestChart
70
78
varfiles []manifestFile
@@ -237,6 +245,50 @@ func CreateManifestCmd(ctx context.Context, o *flags.CreateManifestOpts, s *stor
237
245
returnnil
238
246
}
239
247
248
+
// provenanceMinVersion is the first Hauler release whose stores record enough
249
+
// provenance metadata for `store create manifest` to faithfully reconstruct
250
+
// them. Stores written by earlier versions (or with no recorded version) get a
251
+
// best-effort manifest and a warning.
252
+
constprovenanceMinVersion="v2.1.0"
253
+
254
+
// storeVersionMetadata mirrors the subset of store.json this command reads to
255
+
// decide whether the store carries reliable provenance metadata.
256
+
typestoreVersionMetadatastruct {
257
+
HaulerVersionstring`json:"hauler-version"`
258
+
}
259
+
260
+
// readStoreHaulerVersion returns the "hauler-version" recorded in the store's
261
+
// store.json, or an error if the file is missing or unparseable.
0 commit comments