Hello Niels, On Mon 28 Aug 2023 at 06:56pm +02, Niels Thykier wrote:
> So this is a common pattern in my packages although it sometimes appears in > d/s/local-options rather than d/s/options. > > Basically, the issue is when you have something you want to have locally, not > in git and also not in the archive. In one my other packages, I have a > "local" directory filled with local work items (including a full copy of the > sudo deb package for testing purposes). Here the "local" directory is listed > both in .gitignore and in "tar-ignore", because I do not want it in git nor in > the archive when I do an upload. > > To solve this, I add `tar-ignore=...` (for native packages) to > debian/source/(local-)options. However, if you add that option, you end up > with the entire *.git* directory in the tarball. To avoid that, I add the > `tar-ignore` on its own to get the sane defaults back. > > This then breaks dgit leading to this bug, which is kind of a catch-22 if you > want local specific things (IDE files or local prototype stuff) that you > guarantee is excluded from git and dpkg-source automatically and also support > dgit at the same time. dgit will never let you accidentally perform an upload containing something that's in the tree but not in git, and you can use .git/info/exclude as a local way to ensure it's never in git. So a simple policy of always doing uploads with dgit might achieve what you want, without introducing all these deltas between source packages, git, local trees etc.? -- Sean Whitton
signature.asc
Description: PGP signature