Date: Fri, 27 Jul 2018 15:22:39 +0200 From: Mathieu Arnold <mat@FreeBSD.org> To: Robert <robert.ayrapetyan@gmail.com> Cc: Mathieu Arnold <mat@freebsd.org>, freebsd-ports@freebsd.org Subject: Re: porting project with large files (git-lfs) from github Message-ID: <20180727132239.6n4qay7z636tdqya@atuin.in.mat.cc> In-Reply-To: <21ac85b2-9d28-5d9f-aa4d-b542b85ea95a@gmail.com> References: <7d8a980d-5b0d-bfd2-790f-579881175e95@gmail.com> <20180726081034.hiu5zoemz5steqz5@atuin.in.mat.cc> <21ac85b2-9d28-5d9f-aa4d-b542b85ea95a@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--rdx2ddipepxmj6de Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jul 26, 2018 at 08:42:59AM -0700, Robert wrote: > Hi, you can find it here: > https://github.com/rayrapetyan/daal/tree/FreeBSD_support > All files in e.g. https://github.com/rayrapetyan/daal/tree/FreeBSD_suppor= t/externals/mklfpk/lnx/lib/intel64 > are "large files" they are fetching normally when doing git pull, but when > downloading from "codeload" (this is what FreeBSD does) - they contain ju= st > text hashes... Well, yeah, like I said, this repository is using git-lfs, which is not part of the Git distribution, but an extension. Doing a clone works for you because you have it installed, but it does not work for me because I do not, It ends up saying: $ git clone https://github.com/rayrapetyan/daal.git Cloning into 'daal'... remote: Counting objects: 35068, done. remote: Compressing objects: 100% (20/20), done. remote: Total 35068 (delta 3), reused 7 (delta 2), pack-reused 35044 Receiving objects: 100% (35068/35068), 583.32 MiB | 2.71 MiB/s, done. Resolving deltas: 100% (27544/27544), done. git-lfs filter-process: git-lfs: not found fatal: The remote end hung up unexpectedly warning: Clone succeeded, but checkout failed. You can inspect what was checked out with 'git status' and retry the checkout with 'git checkout -f HEAD' It seems the servers running codeload.g.o do not have git-lfs installed, so when they run git-archive(1) you end up with the pointers to the large files. You will have to run git-archive yourself on a machine where git-lfs is installed. Something along the lines of: git archive --format tar.gz --prefix daal-<commit-hash> -o daal-<commit has= h>.tar.gz <commit hash> And then host that file somewhere, and use it for your port. > On 07/26/18 01:10, Mathieu Arnold wrote: > > On Wed, Jul 25, 2018 at 11:04:41PM -0700, Robert wrote: > > > Hi, I'm porting something hosted on github using GH_... options in Ma= kefile. > > >=20 > > > FreeBSD tries to fetch a tar.gz archive from https://codeload.github.= com and > > > within such archive there are "large files" which contain something l= ike: > > >=20 > > > version https://git-lfs.github.com/spec/v1 > > > oid sha256:e8f293258e38e9689cb87ffbb91c3de2c339a6c074c77115ca86d50b5a= 48bc64 > > > size 20413048 > > >=20 > > > instead of a real data, so build fails. > > >=20 > > > What's the best way to resolve this issue? > > Mmmm, I never tried a repository using git-lfs, I am not surprised > > git-archive(1) does not work with it though. What is the project so I > > can have a look? > >=20 >=20 > _______________________________________________ > freebsd-ports@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" >=20 --=20 Mathieu Arnold --rdx2ddipepxmj6de Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAABCgB9FiEEOraXidLtEhBkQLpbOkUW81GDzkgFAltbHJ5fFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNB QjY5Nzg5RDJFRDEyMTA2NDQwQkE1QjNBNDUxNkYzNTE4M0NFNDgACgkQOkUW81GD zkiamw//fg9LXf7Twbouwdj4X+InG5yM4n4WQAr3XznDHJSe2p/p1obWTROkinPt tp9rpjgywYJ9Hi/gRPdNiTyGl4+JV+HXii+fBIvPn4Kou11CVNomk0h0wRxGx4Cm lM4DYPbOOwHcC8hoib2WkNKUWmDsVFLf9DGam7XHzoG1b+2Xr2rjHloozLItwB1/ NDRD49erwgwBTOpFqhDfYgSFEiBRNRGXOXa99n1oJMEukQB1xTijy3bG2sg3lRY1 nOLfy4p9zwOz8bnn0PCfJoI+EaoNw7eoqy2BDeT4wXCLI228fDH8zEz2kAoKgq97 bC3ESB4pOl5joaTQaJ8YW7Bg/SvfAokaIHvJxxaPwwWENuPp36O7P23ulRbQfFEd eWQyXijw3oH2jXZBU9WxiBsr36wVouXlPcomshKOQEHIweZ5wPGjq4ccJ3cb//zi X9MheznZdFxsDY7yREVtsKyMgHkVUe4ZhPVazw1ns3xG6jmRqlqyZ+UMknEJ5vUl q1E1EqBzBhbb8X1gGvK/R8t/AY3yFTiRVTJWa511CvlCEXd+z1rNGM600zsJ2YYT DdNFnSNqQS8XLcEL0iiCHQho4in6CgGOK3dd8we2E2epK4q5rVGrc0tldeCrNxsS I5mmUfB/AJIf9O7Bn3+PZDS2DturbyrWbWl9W0PNxzL7RamP2xc= =BlEC -----END PGP SIGNATURE----- --rdx2ddipepxmj6de--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180727132239.6n4qay7z636tdqya>