git-bug-migration: init at 0.3.4

This commit is contained in:
D Anzorge 2023-01-04 22:18:00 +01:00
parent c4682d250d
commit 2d6f90f667
4 changed files with 46 additions and 0 deletions

View file

@ -124,6 +124,14 @@
before upgrading their systems.
</para>
</listitem>
<listitem>
<para>
<literal>git-bug</literal> has been updated to at least
version 0.8.0, which includes backwards incompatible changes.
The <literal>git-bug-migration</literal> package can be used
to upgrade existing repositories.
</para>
</listitem>
<listitem>
<para>
The EC2 image module no longer fetches instance metadata in

View file

@ -42,6 +42,8 @@ In addition to numerous new and upgraded packages, this release has the followin
- `podman` now uses the `netavark` network stack. Users will need to delete all of their local containers, images, volumes, etc, by running `podman system reset --force` once before upgrading their systems.
- `git-bug` has been updated to at least version 0.8.0, which includes backwards incompatible changes. The `git-bug-migration` package can be used to upgrade existing repositories.
- The EC2 image module no longer fetches instance metadata in stage-1. This results in a significantly smaller initramfs, since network drivers no longer need to be included, and faster boots, since metadata fetching can happen in parallel with startup of other services.
This breaks services which rely on metadata being present by the time stage-2 is entered. Anything which reads EC2 metadata from `/etc/ec2-metadata` should now have an `after` dependency on `fetch-ec2-metadata.service`

View file

@ -0,0 +1,34 @@
{ lib, buildGoModule, fetchFromGitHub, git }:
buildGoModule rec {
pname = "git-bug-migration";
version = "0.3.4";
src = fetchFromGitHub {
owner = "MichaelMure";
repo = "git-bug-migration";
rev = "v${version}";
hash = "sha256-IOBgrU3C0ZHD2wx9LRVgKEJzDlUj6z2UXlHGU3tdTdQ=";
};
vendorSha256 = "sha256-Hid9OK91LNjLmDHam0ZlrVQopVOsqbZ+BH2rfQi5lS0=";
checkInputs = [ git ];
ldflags = [
"-X main.GitExactTag=${version}"
"-X main.GitLastTag=${version}"
];
preCheck = ''
export HOME=$(mktemp -d)
git config --global user.name 'Nixpkgs Test User'
git config --global user.email 'nobody@localhost'
'';
meta = with lib; {
description = "Tool for upgrading repositories using git-bug to new versions";
homepage = "https://github.com/MichaelMure/git-bug-migration";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ DeeUnderscore ];
};
}

View file

@ -1684,6 +1684,8 @@ with pkgs;
git-bug = callPackage ../applications/version-management/git-bug { };
git-bug-migration = callPackage ../applications/version-management/git-bug-migration { };
git-chglog = callPackage ../applications/version-management/git-chglog { };
git-cinnabar = callPackage ../applications/version-management/git-cinnabar {