[erlang-questions] Including other peoples code in my code in a future proof way
Wed Mar 18 05:36:45 CET 2015
On 03/17/2015 02:51 PM, Leandro Ostera wrote:
> I request extend/cowboy.git#0.9, the people at extend overwrite the 0.9 tag
> and then the next time
> I'm pulling that repo, I'll get a different version of the library. This of
> course does not aid in
> deterministic builds.
In every SCM I've used, tags can be renamed and moved at will.
IMHO, someone who's *actually* interested in deterministic builds should
use the immutable info provided by their SCM (revision # for SVN, commit
hash for git, etc.) rather than something that can be changed at any
time. I would be surprised if 'rebar3 lock' didn't convert references to
tags into references to commit hashes.
Also note that when someone rewrites git history, all of the affected
commit hashes are changed. This means that build systems that use commit
hashes, rather than named tags won't be affected by a history rewrite.
(Unless -of course- the referenced commit is removed.)
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 819 bytes
Desc: OpenPGP digital signature
More information about the erlang-questions