Commit Graph

18 Commits

Author SHA1 Message Date
John Titor
14676392cd
unstableGitUpdater: document actual use procedure 2024-05-13 22:42:41 +05:30
OPNA2608
c4019f81b7 unstableGitUpdater: Move copy-pasted git describe call into reusable function 2024-03-25 12:50:47 +01:00
OPNA2608
ce3a2f648e unstableGitUpdater: Drop --bare cloning
It messes with tags
2024-03-03 18:58:58 +01:00
OPNA2608
ce91e3572b unstableGitUpdater: Address review feedback 2024-03-03 18:58:58 +01:00
OPNA2608
e30288bced unstableGitUpdater: Add option to apply a pattern to found tags, to ignore non-matching tags 2024-03-03 18:58:58 +01:00
OPNA2608
c145f59d48 unstableGitUpdater: Add option to run the tag through a converter program 2024-03-03 18:58:58 +01:00
OPNA2608
3cd4a35e71 unstableGitUpdater: Try full history if failed to find any tags in shallow clone 2024-03-03 18:58:58 +01:00
OPNA2608
460374eb04 unstableGitUpdater: Support non-shallow clones in tag search 2024-03-03 18:58:57 +01:00
OPNA2608
222da55eef unstableGitUpdater: Use stableVersion, update to new format, offer hardcoded 0 version 2024-03-03 18:58:57 +01:00
Jacob Moody
5dde2776d3 unstableGitUpdater: add deepClone argument for non shallow clones 2023-07-23 13:16:28 -05:00
Alyssa Ross
88441f3e44 unstableGitUpdater: fix inaccurate comments
It used to use src.url, but when that was changed the comments weren't
updated.

Fixes: 7aae279ad9 ("unstableGitUpdater: fix updating fetchzip-based sources")
2022-09-04 08:59:51 +00:00
Jan Tojnar
7aae279ad9 unstableGitUpdater: fix updating fetchzip-based sources
a67950f20b added `url` attribute
from `fetchurl` and therefore also from `fetchzip`.
We previously relied on `url` from fetchgit-based fetchers
to find the repo URL but now it will just return tarballs
in the case of `fetchFrom{GitHub,GitLab}`.

Let’s add an attribute to `fetch{git,FromGitHub,FromGitLab}`
to expose a repo URL consistently.
2022-05-24 19:12:12 +02:00
Jan Tojnar
97276fe650 unstableGitUpdater: Allow using stable versions
It is important to keep the version as parsed by `builtins.parseDrvName`
monotonic for packages that often switch between stable and unstable versions,
for nix-env to be able to update them reliably.

Let’s optionally use the version format described by RFC 107:
https://github.com/NixOS/rfcs/pull/107
The downside is that it requires fetching
more commits to be able to determine the latest tag.
2022-02-18 17:26:46 +01:00
Jan Tojnar
3985dde04e unstableGitUpdater: Use single derivation for all branches
This will reduce the number of build when updating a large number of packages at the same time
(e.g. when updating all packages of a maintainer).
2022-02-18 17:26:45 +01:00
Jan Tojnar
30ec84fba3 unstableGitUpdater: Fix support for fetchFromGit{Hub,Lab}
When `fetchFromGitHub` uses `fetchzip` instead of `fetchgit` internally,
which is the most common use case, there is no `src.url` attribute
so the update will fail.

Let’s fix that by falling back to `src.meta.homepage`,
which these fetchers set to the repository URL.
2022-02-18 07:59:02 +01:00
Attila Lendvai
6c876bac61 unstable-updater.nix now understands a branch argument 2021-06-17 16:54:46 +02:00
Pavol Rusnak
a6ce00c50c
treewide: remove stdenv where not needed 2021-01-25 18:31:47 +01:00
Francesco Gazzetta
3f20319cd1 unstableUpdater: init 2020-11-21 11:28:45 +01:00