Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes to how hex or packages may work in the future will necessarily
bring changes to the format of lock files.
This commit adds an optional framing for future lock files of the form:
This format is supported such as the LockList is the current lockfile
contents, and will never have more information than it currently does.
Attributes can be whatever and are currently undefined.
Rebar copies will be able to:
so of community libraries using rebar3)
This changes the usage interface slightly, but is backwards and
forwards compatible.
If we wanted to add, for example, a list of source indexes for given
dependencies, we could have a lockfile of the form:
Currently it wouldn't be expected that plugins or users write
arbitrary data to the lock file.
A conversion layer is added when reading and writing from/to
disk such that while the snippet above represents the on-disk
format, Rebar3 could internally work with:
And just do what it needs. All we need to do is maintain a set of
functions to map from past versions to future versions,
and to read what we can afford to read from future versions,
losing whatever information we must to keep going (while
displaying a big warning)