Hi Hamish, > GitHub and GitLab allow you to download all files from a branch as a > compressed archive, using your web browser. For a while, this is how > we've deployed the river control system software at Wimborne Model > Town, as the system hasn't had internet access, historically speaking. > > As we're now almost ready for some new deployments, it'd be useful to > know exactly what revision of code the pis contain, so we can slowly > bring things up to date. I was wondering if anyone know whether > GitLab's file downloads contain any kind of git signature/watermark to > show you what commit you downloaded, or if there's a way to enable > this.
If the tar-file download doesn't include the revision in its filename and the directory it unpacks then I'd either post-process it to do that or stop using the web download and do a proper ‘release’ target in the software's makefile. Then when you want a release to ship you make REV=12345678ab release and it creates a ‘wmt-12345678ab.tar.lzip’ or similar which is a check-out of that revision from the public repo into directory ‘wmt-12345678ab’, all tar'd up. You can ship those tar files about, unpack them, and then alter a ‘wmt’ symbolic link to move between which version will be used, allowing for easy downgrade on a machine with no Internet. Code can inspect the ‘real’ path to its location to determine its version for logging, etc. -- Cheers, Ralph. -- Next meeting: Online, Jitsi, Tuesday, 2020-08-04 20:00 Check to whom you are replying Meetings, mailing list, IRC, ... http://dorset.lug.org.uk New thread, don't hijack: mailto:dorset@mailman.lug.org.uk