From nobody Tue Oct 01 19:04:17 2024 X-Original-To: git@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XJ6my4q1Yz5YDn1 for ; Tue, 01 Oct 2024 19:04:18 +0000 (UTC) (envelope-from brooks@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XJ6my48Nlz4cCR; Tue, 1 Oct 2024 19:04:18 +0000 (UTC) (envelope-from brooks@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727809458; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=3nZMarBbYO2Uh82DtDwa2lnYQGCrYhjnz2eoQhugUKc=; b=CS9Iju6Pg4rVYAF1AcBCAMFlwajpkJkGlo8jJRZzuy5JeoNdV1oTEXSNfZPm1TGbjg2mpM iB+KcCOSCVFtBQrzqaI8ZjNW0QFTrGfOlZ4n1q4LDWxNlhomyxxGgHeoVXk3lGl7igL+Tn 7ULd2ElrVJhbbI9iXXx/OhaHxsIgiSh+RuKg84Q8zhy7cvIvf+aNMMjmSiPjRMDabAYGsk wzdra+MFqD3U6mIxahNKz6aFfI8Ucv9PBTbMae7f880D43M6nZCyJsB/uFnwMZ1N4rDfsq SP0K2X3VPMFgjW3O9hIwTalGmkKH3yYtYEqOv5GUX7oleMbGFmPTgzNi6x2s7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727809458; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=3nZMarBbYO2Uh82DtDwa2lnYQGCrYhjnz2eoQhugUKc=; b=QyZgwvJOOQ5HrVgaMBXRZgYvtJ6N79shyAqKBYZq9bH1QkYXVlopTJNsGsiUXiZRisu5Sf ZOhyxEERmJHVn04Z8OBhb1ujAVgt4Jlb+lpYzyLamQpf0WHvcMgC1xZ18dLCKwRuI7xXlI AL36liELBj0q3EvHQHHYKeIoE9FYt5gDi0Hc6G8U0xfmfd7hiQ6wzrE/M5AAsTeJQ6fCCf 2DpJ3YJc9iFzAOkYw8AwgCs9RjxaxOrkBd4n5IL2UsVcxF6w1+0BTeb9DHbf4+kctUPA6x 9y39Lnkt7IrTwrY4k5kR73xI5PIcZiLM/le2T5eYKDmaKzDYp5uRy1dRwaPwBQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727809458; a=rsa-sha256; cv=none; b=TBFuYwQZc4YAtI8xUUnOfu1Gc34TK3MGDPDWFPo+OnlREmfI0SfLzTCG+ModgVeoc/1ABx 6J2xElxTnzVs0nRalC6zlcCNdj1LYgBaViH2a869ldVeLr9E+W2+ZjZfushn5XVupxBzBE PVs5YhhCHE/Ix/QGPj9CYBrvteGpFRLgm2r96ZdBV+sByZDLtrcR5BxyKqm39m0GuC2J2M aeUFkNynYK9aBCwXGb+5nN3yoEIVEKhrB3AV3Bnkf5/lQhMEvhdw3XgjUZV+4AU7AmCLq0 EV+wmCzlVWEYhMBjKDz+OJG1thxK+BmUE45Obn3S2iR5O+6Qn1YjGUXsvWutHw== Received: from spindle.one-eyed-alien.net (spindle.one-eyed-alien.net [199.48.129.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: brooks/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4XJ6my3Tznz1BDM; Tue, 1 Oct 2024 19:04:18 +0000 (UTC) (envelope-from brooks@freebsd.org) Received: by spindle.one-eyed-alien.net (Postfix, from userid 3001) id D861A3C019B; Tue, 01 Oct 2024 19:04:17 +0000 (UTC) Date: Tue, 1 Oct 2024 19:04:17 +0000 From: Brooks Davis To: Matthias Fechner Cc: Dave Cottlehuber , git@freebsd.org Subject: Re: Impossible to push my ports directory to my CI/CD pipeline Message-ID: References: <483fb132-0d1c-443a-9b44-b7f2f087fb3d@freebsd.org> List-Id: Discussion of git use in the FreeBSD project List-Archive: https://lists.freebsd.org/archives/freebsd-git List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-git@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Tue, Oct 01, 2024 at 12:00:30PM +0300, Matthias Fechner wrote: > Hi Dave, > > Am 01.10.2024 um 10:04 schrieb Dave Cottlehuber: > > I'm curious why you use the `lfs` here, I guess its just to > > show lfs-related issues, and normally you don't use it? > > > > Anyway on a fresh checkout, this works fine: > > > > git clone -vv git@gitrepo.freebsd.org:ports.git -b main ports > > > > trying `git lfs clone ...` reports: > > > > WARNING: 'git lfs clone' is deprecated and will not be updated > > with new flags from 'git clone' > > > > but also has no issues. > > > > In either case, `git lfs ls-files` shows nothing. > > > > It's not clear to me how git "knows" about lfs, but there are > > a bunch of XDG_DIR config files that may impact this, viz: > > > > https://git-scm.com/docs/gitattributes > > > > > If I now try to push to my local repo I get: > > > > > > git push origin > > > Warning: untrusted X11 forwarding setup failed: xauth key data not generated > > > Locking support detected on remote "origin". Consider enabling it with: > > > ?? $ git config > > > lfs.https://gitlab.fechner.net/mfechner/Gitlab.git/info/lfs.locksverify true > > > Unable to find source for object > > > 99a670c083e000008ee29dd972b60cbad6ade1d6ec024b30ff45f41da3d19e1d (try > > My current thinking is there's nothing (as yet) obviously wrong with > > FreeBSD's git repos, but there's possibly something interacting with gitlab. > > > > Can you create a new github repo, and try pushing your ports tree to that, > > to see if it sees the same issue? > > > > Given I can't replicate this here, perhaps there is a $SOMEWHERE}/.config/git/attributes > > or similar /config file that influences git tooling? > > > I just did a fresh clone: > git clone git@gitrepo.freebsd.org:ports.git > > cd ports > > git lfs ls-files --all > 6d0aef4ba9 - java/eclipse/files/addons/eclipse.platform.swt/binaries/org.eclipse.swt.gtk.freebsd.aarch64/libswt-atk-gtk-4965r11.so > ed324ddc16 - java/eclipse/files/addons/eclipse.platform.swt/binaries/org.eclipse.swt.gtk.freebsd.aarch64/libswt-awt-gtk-4965r11.so ... > > > > so it seems that there is something in the FreeBSD repository. This can maybe > get only fixed be rewrite the git history, but lets see, I'm currently not > sure as no one else is seeing this... Hmm, this is quite bizzare. It looks like running `git lfs ls-files --all` causes the repo to be lfs enabled and adds the following to the .git/config file: [lfs] repositoryformatversion = 0 That's surprising and a bit annoying. I also see those files listed and they don't exist in the current checkout. Digging further the following commit introduced lfs files: commit c94e4ced329298efb06189d1c6db26e3d6ff3eef Author: Vladimir Druzenko Date: Fri Sep 13 15:54:52 2024 +0300 java/eclipse: fix build consumer devel/subversive, commit files ignored with .gitignore <...> This commit removed them, but they are still in history so anything that checks that the full history is intact is now broken: commit 3ec21e417cd5752c96b88587a5a605567ba5cd19 Author: Norbert Grundmann Date: Fri Sep 20 03:14:47 2024 +0300 java/eclipse: Remove unnecessary *.so files <...> -- Brooks