summaryrefslogtreecommitdiff
path: root/test/mock_git_resource.erl
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2016-02-16 08:54:46 -0500
committerFred Hebert <mononcqc@ferd.ca>2016-02-16 08:54:46 -0500
commitcaf4468f3bbbea75be35e0cf0560990b5db66e7e (patch)
tree731e1301a350b13acb5ba90be77f5234a2bf8428 /test/mock_git_resource.erl
parentb8a590cf192181170d5fdab40652340917ba3905 (diff)
Make lock files future-proof
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: {Version, LockList}. <Whatever consultable attributes> 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: - Keep using the core locklist (which avoids breaking the last year or so of community libraries using rebar3) - Warn when it runs an outdated copy in comparison to the lock file - Automatically rewrite lock files in the format it supports - Augment or parse files in a version-specific manner. This changes the usage interface slightly, but is backwards *and* forwards compatible.
Diffstat (limited to 'test/mock_git_resource.erl')
0 files changed, 0 insertions, 0 deletions