Commit Graph

176 Commits

Author SHA1 Message Date
seth
3b1c559db5 use nixfmt with --format 2024-06-06 12:22:10 +00:00
Mario Rodas
e278a56d12 Ignore yanked versions in fetchCrate 2024-06-06 12:16:45 +00:00
Peder Bergebakken Sundt
63b5a4e989 Try pkg.meta.position before unsafeGetAttrPos
Fixes `nixpkgs.mpvScripts.*`, discovered while reviewing https://github.com/NixOS/nixpkgs/pull/308062
2024-05-08 23:11:04 +00:00
mergify[bot]
c3194df384
Merge branch 'master' into fix-gitlab-branch 2024-04-23 10:41:22 +00:00
emilylange
fb5c71b422 gitea: fix handling when fetchFromGitea falls back to fetchgit
`fetchFromGitea` just re-uses `fetchFromGitHub`.
The only difference is making `domain` a required attribute instead of
defaulting to `"github.com"`.

As such, it falls back to `fetchgit`, such like `fetchFromGitHub`, if
any of the following is true:

 - fetchSubmodules
 - leaveDotGit
 - deepClose
 - sparseCheckout != []
 - forceFetchGit

When falling back to `fetchgit`, the `src.url` will end with `".git"`,
which we then need to strip again from our parsed `repo` variable.

`fetchFromGitHub` has the same logic to trim `".git"` unconditionally.
2024-04-20 23:06:44 +00:00
emilylange
b03e9dc75a fetch_gitea_snapshots: fix typo and make less expensive 2024-04-20 23:06:44 +00:00
emilylange
e948a7f797 remove broken Gogs/notabug.com support
Gogs isn't Gitea.
The API surface of Gogs is different from Gitea's.

Additionally, notabug.com uses a multiple years old version of Gogs,
which has neither `/tags` nor `/commits` implemented.

The implementation we use in `version/gitea.py` simple does not work.

You can check this yourself by running `nix-update libgtkflow4`, one of
the few packages in nixpkgs that are hosted on notabug.com
2024-04-20 23:06:44 +00:00
Federico Damián Schonborn
46218bd11e
fix fetching GitLab snapshots on repos with no tags
This commit fixes #242

Signed-off-by: Federico Damián Schonborn <federicoschonborn@disroot.org>
2024-04-19 22:23:18 -03:00
Daniel Sampliner
2519da8d1c fix formatting to comply 2024-04-02 07:49:09 +00:00
Daniel Sampliner
8d44ca1d8f respect --override-filename flag for flakes
fixes https://github.com/Mic92/nix-update/issues/238
2024-04-02 07:49:09 +00:00
Anthony Roussel
e567ad0c7e Add support for updating buildMavenPackage's mvnHash 2024-03-18 07:15:52 +00:00
Jörg Thalheim
a42ae67d87
Merge pull request #229 from lilyinstarlight/fix/cargo-lock-leaving-result-links-everywhere
make cargo lock updater keep outpath links in temporary directory
2024-03-11 08:41:04 +01:00
Lily Foster
f80ee70b1d
make cargo lock updater keep outpath links in temporary directory 2024-03-06 06:48:44 -05:00
Jörg Thalheim
2db1d82656
Merge pull request #227 from lilyinstarlight/fix/cargo-separate-debug-info
fix updating cargo lock when separateDebugInfo is enabled
2024-03-06 08:11:07 +01:00
Lily Foster
a6485c159c
fix updating cargo lock when separateDebugInfo is enabled 2024-02-23 18:53:11 -05:00
Lily Foster
5ef0425f79
prefix unstable version numbers with latest release per current guidelines 2024-02-23 18:52:42 -05:00
Gaetan Lepage
a566b9bdb1 print maintainers list 2024-01-25 10:38:41 +00:00
Lily Foster
6e4ee6941a make gitlab updater work by tag when releases are disabled 2024-01-17 14:56:30 +00:00
Gaël Reyrol
0a30179f00 Add support for updating buildComposerProject's vendorHash
Update tests/testpkgs/default.nix
2024-01-16 11:06:16 +01:00
EBADBEEF
a10f7c047f bitbucket.org support for versions and snapshots 2023-11-22 19:13:43 +00:00
Jörg Thalheim
d945764f13 nix fmt 2023-11-08 07:58:55 +00:00
Matthieu Coudron
6f21bf4db4 improve --help output, notably '--version' possibilities 2023-11-08 07:58:55 +00:00
figsoda
8e3c8afa5e
Merge pull request #68 from yu-re-ka/feature/yarn-hash
support for updating yarn FOD hash
2023-09-06 17:37:55 -04:00
figsoda
d53a5d75cb unquote versions from github atom feeds 2023-09-06 19:59:06 +00:00
Yureka
8b3e81e45d support for updating yarn FOD hash
For https://github.com/NixOS/nixpkgs/pull/140701
2023-09-06 12:25:25 +02:00
Jörg Thalheim
e0239251cb ruff: enable upgrade checks 2023-08-25 07:00:08 +00:00
figsoda
4f2d6c40e1 quote import_path when importing in nix 2023-08-24 15:06:03 +00:00
figsoda
1186454210
fix pyright lints (#188) 2023-08-14 09:08:55 +01:00
figsoda
58c48cfa0d fix escaping for non-toplevel attributes 2023-08-06 14:17:25 -04:00
figsoda
39cd42e0a0 fix attribute name escaping 2023-08-02 09:56:57 -04:00
figsoda
dfe1130b59 escape attribute names 2023-08-01 18:59:14 -04:00
Artturin
68b5b4b5a3 support new goModules attr
go-modules has been renamed to goModules

for nixpkgs pr 242905
2023-07-12 19:03:22 +00:00
Jörg Thalheim
fe6b2e9cdc also respect cargoRoot when updating checksum 2023-06-16 08:23:53 +02:00
Jörg Thalheim
24fd357bb7 git-commit files directly without using staging area
fixes https://github.com/Mic92/nix-update/issues/170
2023-06-01 20:34:28 +02:00
figsoda
161eed5da8 add diff support for fetchCrate 2023-05-12 12:54:40 -04:00
Jörg Thalheim
5f4b0c1200 nix-update: use nom if in path 2023-04-28 22:19:18 +02:00
figsoda
84103ab986 fix updating cargoLock with flakes 2023-04-26 23:33:06 -04:00
bors[bot]
430c441072
Merge #155
155: improve assertion message r=Mic92 a=figsoda



Co-authored-by: figsoda <figsoda@pm.me>
2023-04-22 15:44:36 +00:00
bors[bot]
a38315be22
Merge #156
156: remove unused code r=figsoda a=figsoda



Co-authored-by: figsoda <figsoda@pm.me>
2023-04-20 17:34:28 +00:00
figsoda
f4d1af9636 remove unused code 2023-04-20 13:33:36 -04:00
figsoda
740ab2621c improve assertion message 2023-04-20 13:12:44 -04:00
figsoda
8ab80a4d7b consider revision when checking whether there was an update 2023-04-14 23:17:10 -04:00
zowoq
0ccd9cc0b1 switch to go-modules.outputHash 2023-04-10 07:12:49 +10:00
figsoda
d310442948 sort and remove unused imports 2023-04-03 08:59:22 -04:00
Jörg Thalheim
f969788b35 treewide: stop using Union type in favour of | 2023-04-03 09:31:42 +02:00
Jörg Thalheim
01408b8b13 eval: Use cargo lock class to distinguish different cases instead of tristate bool|Optional|str 2023-04-03 09:31:42 +02:00
figsoda
927f47a36e fix updating importCargoLock when lockFile is in the nix store 2023-04-02 22:56:36 -04:00
figsoda
cb0edae277 improve error message when no hash is found 2023-03-25 22:16:09 -04:00
figsoda
fb1396fee4 deduplicate outputHashes based on git revisions 2023-03-21 18:11:40 -04:00
figsoda
db07c35dae add support for updating packages using importCargoLock 2023-03-20 22:48:32 -04:00