Re: Help for watch file needed (has anything changed on gitlab that needs to be respected?)

2025-02-26 Thread Ahmad Khalifa

On 26/02/2025 13:33, Andreas Tille wrote:

version=4
https://gitlab.com/l_sim/v_sim/tags?sort=updated_desc 
.*/v_sim-(\d[\d.]+)\.tar\.gz


In case it helps, for gitlab it works with plain mode and the version is 
repeated in the path and file name.


This is similar to what worked for me with openrgb where they don't use 
tags reliably:


opts="searchmode=plain" \
   https://gitlab.com/l_sim/v_sim/-/tags 
archive/\d[\d.]*/v_sim-@ANY_VERSION@@ARCHIVE_EXT@



--
Regards,
Ahmad



Re: Help for watch file needed (has anything changed on gitlab that needs to be respected?)

2025-02-26 Thread Soren Stoutner
On Wednesday, February 26, 2025 11:03:34 AM MST Ahmad Khalifa wrote:
> On 26/02/2025 13:33, Andreas Tille wrote:
> > version=4
> > https://gitlab.com/l_sim/v_sim/tags?sort=updated_desc
> > .*/v_sim-(\d[\d.]+)\.tar\.gz
> In case it helps, for gitlab it works with plain mode and the version is
> repeated in the path and file name.
> 
> This is similar to what worked for me with openrgb where they don't use
> tags reliably:
> 
> opts="searchmode=plain" \
> https://gitlab.com/l_sim/v_sim/-/tags
> archive/\d[\d.]*/v_sim-@ANY_VERSION@@ARCHIVE_EXT@

There are additional examples at:

https://wiki.debian.org/debian/watch/#GitLab

-- 
Soren Stoutner
[email protected]


signature.asc
Description: This is a digitally signed message part.


Re: Help for watch file needed (has anything changed on gitlab that needs to be respected?)

2025-02-26 Thread Andreas Tille
Am Wed, Feb 26, 2025 at 03:00:07PM +0100 schrieb Julien Plissonneau Duquène:
> But the best approach is probably to switch to mode=git as this is more
> robust and future-proof, and there is no added value in fetching and using
> the source archives when they are generated automatically from the tags in
> the repository by gitlab. That's just the same content. The same goes for
> GitHub and others.

Works, thanks, Andreas. 

-- 
https://fam-tille.de



Re: Help for watch file needed (has anything changed on gitlab that needs to be respected?)

2025-02-26 Thread Julien Plissonneau Duquène

Hi Andreas,

Apparently on the Tags page the links are now generated on the fly by 
some Javascript code, and what appears in the page source is mangled 
like:

data-download-links="[{"text":"zip","path":"/l_sim/v_sim/-/archive/3.8.0/v_sim-3.8.0.zip"},


You could try to scan for these but that seems rather brittle. 
Alternatively maybe GitLab has an API you could use, like what is 
documented for GitHub in uscan's man page, but that's only marginally 
better and API use may be subject to rate limiting which could cause 
issues now or later (rate limiting is definitely an issue on GitHub).


But the best approach is probably to switch to mode=git as this is more 
robust and future-proof, and there is no added value in fetching and 
using the source archives when they are generated automatically from the 
tags in the repository by gitlab. That's just the same content. The same 
goes for GitHub and others.


Cheers,

--
Julien Plissonneau Duquène