public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Florian Schmaus <flow@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: [gentoo-dev] Current portage will now truncate your repo's git history to 1
Date: Thu, 15 Dec 2022 20:22:51 +0100	[thread overview]
Message-ID: <b577fe9a-9603-af64-81e4-1bc331534dc4@gentoo.org> (raw)

This is a public service announcement that the recently stabilized 
portage version will truncate you repo's git history to 1.

While this is a good thing for the majority of Gentoo users, it affects 
developers that develop in a git known to portage (like me). If I 
understand the portage maintainers vision correctly, then future portage 
will assume full control over its configured repositories and 
potentially perform destructive operations on them, for example "git 
clean" [1].

I personally would prefer portage simply adjusting its behavior based on 
the owner of the repository. That is, if it's the 'portage' user then 
assume full control, and if it is a different user, then fall back to a 
preserving, conservative mode of operation. Unfortunately, for me, this 
idea was received skeptically at best in a recent discussion in 
#gentoo-portage.

So this is a heads up for fellow developers using a similar workflow 
like me, that they are probably required to change their workflow to use 
PORTDIR_OVERLAY and multiple repositories on their system: a 
system-wide, managed by portage, and a dev repository (in your HOME), 
scoped in via PORTDIR_OVERLAY.

As everyone knows, there is nothing better than to change the workflow 
that has served you well over multiple years. But apparently the 
PORTDIR_OVERLAY approach works well for others, so I am confident that I 
(and others) will be able to make the transition with a minimal amount 
of ranting. ;)

- Flow



1: https://github.com/gentoo/portage/pull/939


             reply	other threads:[~2022-12-15 19:23 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-15 19:22 Florian Schmaus [this message]
2022-12-15 19:56 ` [gentoo-dev] Re: Current portage will now truncate your repo's git history to 1 Florian Schmaus
2022-12-15 20:10 ` [gentoo-dev] " Toralf Förster
2022-12-15 20:40   ` Florian Schmaus
2022-12-16  1:08     ` [gentoo-dev] " Duncan
2022-12-17  4:01       ` Brian Evans
2022-12-18  1:52         ` John Helmert III
2022-12-17  5:42 ` [gentoo-dev] " Sam James
2022-12-17  6:14   ` Michael
2022-12-17  6:25   ` Sam James
2022-12-18  2:09   ` John Helmert III
2022-12-18 10:19   ` Florian Schmaus
2022-12-18 11:42     ` Sam James

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b577fe9a-9603-af64-81e4-1bc331534dc4@gentoo.org \
    --to=flow@gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox