Skip to content

Commit c5fc7ce

Browse files
marsamMic92
authored andcommitted
Move Gitea fetchers to the last entry
Gitea fetchers tries to guess whether a host is a Gitea instance; so we move them as the last fetcher to avoid colliding with the other fetchers.
1 parent e962e15 commit c5fc7ce

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

nix_update/version/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,22 @@ def __call__(self, url: ParseResult, branch: str) -> list[Version]: ...
3535
fetch_crate_versions,
3636
fetch_npm_versions,
3737
fetch_pypi_versions,
38-
fetch_gitea_versions,
3938
fetch_github_versions,
4039
fetch_gitlab_versions,
4140
fetch_rubygem_versions,
4241
fetch_savannah_versions,
4342
fetch_sourcehut_versions,
4443
fetch_bitbucket_versions,
44+
# all entries below perform requests to check if the target url is of that type
45+
fetch_gitea_versions,
4546
]
4647

4748
branch_snapshots_fetchers: list[SnapshotFetcher] = [
48-
fetch_gitea_snapshots,
4949
fetch_github_snapshots,
5050
fetch_gitlab_snapshots,
5151
fetch_bitbucket_snapshots,
52+
# all entries below perform requests to check if the target url is of that type
53+
fetch_gitea_snapshots,
5254
]
5355

5456

0 commit comments

Comments
 (0)