[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Failure on export-orig in dynare



Le samedi 17 février 2024 à 17:46 +0100, Rafael Laboissière a écrit :
> * Sébastien Villemot <sebastien@debian.org> [2024-02-15 14:16]:
> 
> > Le jeudi 15 février 2024 à 10:54 +0100, Rafael Laboissière a écrit :
> > > It is still not working :
> > > 
> > > […] 
> > >      $ gbp export-orig 
> > >      gbp:info: Creating /var/data/rlaboiss/debian/PKGS/dynare/dynare_6.0.orig.tar.xz 
> > >      gbp:error: Error creating dynare_6.0.orig.tar.xz: Pristine-tar couldn't checkout "dynare_6.0.orig.tar.xz": xdelta3: source file too short: XD3_INVALID_INPUT
> > 
> > Maybe you don’t have git-lfs installed and configured?
> > 
> >  # apt install git-lfs
> >  $ git-lfs install
> 
> Indeed. I did not know that dynare uses git-lfs. It is working now, 
> thanks!

The upstream git repository of dynare uses Git LFS (for storing *.mat
files). What has changed is that in release 6.0, the .gitattributes
file at the root of the repository is now included in the source
tarball (due to a change of upstream build system). As a consequence,
when I imported the upstream source tarball with “gbp import-orig”,
those *.mat files were imported as LFS objects in our DoG repository on
salsa (curiously, “gbp clone” ignores .gitattributes by default, but
“gbp import-orig” seems to respect it).

So this is actually an unintended move.

> I am wondering whether there is a way to inform users, when "git clone" 
> is run, that they are are cloning a git-lfs-dependent repository…

I admit that the situation can be confusing for developers who clone
our repo with “gbp clone”. Nothing tells them that Git LFS is needed,
and it’s unclear where such information should be displayed.

So another possibility would be to revert that change, and go back to
using regular storage for *.mat files in our salsa repo (as was the
case in previous releases). I would need to somehow filter the
.gitattributes from the upstream source tarball.

-- 
⢀⣴⠾⠻⢶⣦⠀  Sébastien Villemot
⣾⠁⢠⠒⠀⣿⡁  Debian Developer
⢿⡄⠘⠷⠚⠋⠀  https://sebastien.villemot.name
⠈⠳⣄⠀⠀⠀⠀  https://www.debian.org


Reply to: