Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[format version bump v2] Add mode field
Include a mode field in the ObjectMetadata and bump the version. Compatibility notes: * This elfshaker commit will still be able to read old elfshaker pack index files, because the default of an optional is None, which gives us exactly the old behaviour of elfshaker prior to this commit. * elfshaker after this commit will produce packfiles that cannot be read by older commits of elfshaker. However, those old versions will report to the user that the version they have is too old and point them to where they can obtain a newer version. The biggest risk here is that someone using the main branch makes packfiles, and distributes those packfiles to a user who is not able to build elfshaker, and we have not yet gotten around to releasing a new version of elfshaker. So we should aim for a release of a new version reasonably soon so that users don't find themselves in this situation where they can't get an elfshaker which can read the packfiles they have been provided. Using an old elfshaker to produce packfiles and ship them to users of any version of elfshaker is intended to be supported in principle.
- Loading branch information