<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 2020-04-27, at 21:55, Ken Cunningham <<a href="mailto:ken.cunningham.webuse@gmail.com" class="">ken.cunningham.webuse@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">it takes some work sometimes to make the github PortGroup obey your bidding:<br class=""><br class=""><br class="">you know that you want this file:<br class=""><br class=""><a href="https://github.com/snabb/downtimed/archive/version-1.0.tar.gz" class="">https://github.com/snabb/downtimed/archive/version-1.0.tar.gz</a><br class=""><br class=""><br class="">you would have thought that setting:<br class=""><br class="">github.tarball_from archive<br class=""><br class=""><br class="">would work to get you that file, but it does not, because the github portgroup generates this url instead:<br class=""><br class="">https://github.com/snabb/downtimed/archive/1.0/downtimed-1.0.tar.gz<br class=""><br class=""><br class="">and there is nothing at that URL. Ergo your 404 error.<br class=""><br class="">This can be very frustrating. Some package mangers just let you put in the whole URL you want -- that is nice :> -- but it bypasses a feature MacPorts wants to have, which is distfile mirroring, which is nice when it works.<br class=""><br class="">You can see the URL the github PG generates by using<br class=""><br class="">port distfiles<br class=""><br class="">and then just monkey around with options until it matches a place where there is a file.<br class=""><br class="">In practical terms for right now, if you remove this line:<br class=""><br class="">github.tarball_from archive<br class=""><br class=""><br class=""><br class="">and you should be OK<br class=""><br class="">port distfiles will tell you.<br class=""><br class="">I often paste the URL I want into the portfile as a comment, and then keep monkeying around with the GitHub PG settings until I get something.<br class=""><br class="">Anybody who tells you it is very easy and you're missing something obvious just forgets what it was like before they knew how to manhandle the github PG :><br class=""><br class="">Ken</div></div></blockquote><br class=""></div><div><br style="font-family: Menlo-Regular;" class=""><span style="font-family: Menlo-Regular;" class="">thanks.</span><br style="font-family: Menlo-Regular;" class=""><br style="font-family: Menlo-Regular;" class=""><span style="font-family: Menlo-Regular;" class="">left out github.tarball_from</span><br style="font-family: Menlo-Regular;" class=""><span style="font-family: Menlo-Regular;" class="">now i get</span><br style="font-family: Menlo-Regular;" class=""><a href="https://github.com/snabb/downtimed/tarball/1.0/downtimed-1.0.tar.gz" style="font-family: Menlo-Regular;" class="">https://github.com/snabb/downtimed/tarball/1.0/downtimed-1.0.tar.gz</a><br style="font-family: Menlo-Regular;" class=""><span style="font-family: Menlo-Regular;" class="">but i need</span><br style="font-family: Menlo-Regular;" class=""><a href="https://github.com/snabb/downtimed/archive/version-1.0.tar.gz" style="font-family: Menlo-Regular;" class="">https://github.com/snabb/downtimed/archive/version-1.0.tar.gz</a><br style="font-family: Menlo-Regular;" class=""><br style="font-family: Menlo-Regular;" class=""><span style="font-family: Menlo-Regular;" class="">is there a way to use a template for the download? or is it trial and error?</span></div><br class=""></body></html>