On Mar 5, 2018, at 05:43, db wrote: > On 5 Mar 2018, at 11:39, Ryan Schmidt wrote: >> hash+date is specific, predictable, repeatable. The portfile developer tests >> a specific hash+date, and when satisfied, commits it to make it available to >> MacPorts users. > > As I said in my previous post, you can get HEAD's hash with 'git ls-remote > --heads'. And store it somewhere.
Who are you suggesting should run this command and when? The port maintainer? The user trying to install the port? MacPorts itself? > Devel ports that use hash+date only add the date, and I doubt they are much > tested. As with any other port, at minimum, whoever committed the update should have tested that it builds on their version of macOS before committing. > But hey, I'm glad Ken found this and I can use it locally at least. I'm not disputing that it is technically possible to write a Portfile today that fetches the HEAD of a repository. I'm explaining the problems that arise if you do that, and why it is therefore our policy not to permit ports that do that to be introduced into the ports collection.