Commit Graph

66 Commits

Author SHA1 Message Date
seth
3b1c559db5 use nixfmt with --format 2024-06-06 12:22:10 +00:00
Gaetan Lepage
a566b9bdb1 print maintainers list 2024-01-25 10:38:41 +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
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
39cd42e0a0 fix attribute name escaping 2023-08-02 09:56:57 -04: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
Jörg Thalheim
5f4b0c1200 nix-update: use nom if in path 2023-04-28 22:19:18 +02:00
figsoda
8ab80a4d7b consider revision when checking whether there was an update 2023-04-14 23:17:10 -04:00
figsoda
d310442948 sort and remove unused imports 2023-04-03 08:59:22 -04: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
db07c35dae add support for updating packages using importCargoLock 2023-03-20 22:48:32 -04:00
Jörg Thalheim
ab45f140f6 nix-update: add url parameter to override the repository discovery 2023-01-26 10:06:29 +01:00
figsoda
bf2ee2bbf0 system_flags -> extra_flags, move experimental features to extra_flags 2023-01-08 10:35:32 -05:00
figsoda
3928ea476b pass system when importing nixpkgs 2023-01-08 10:35:17 -05:00
figsoda
329317dbdd add --system 2023-01-04 19:55:31 -05:00
figsoda
71fbce46cf default attribute to $UPDATE_NIX_ATTR_PATH 2022-12-24 21:38:18 -05:00
Jörg Thalheim
6332016c85 share more code between flake and non-flake version 2022-12-11 20:12:35 +01:00
figsoda
e5f57c258c add support for flakes 2022-12-08 12:46:35 -05:00
figsoda
895f44126b add flag to run passthru.updateScript if possible 2022-11-28 10:43:41 -05:00
Jörg Thalheim
64f5cc5ddc
Merge pull request #113 from figsoda/diff
Add diff feature
2022-11-27 20:46:11 +01:00
figsoda
baf3779e54 add diff features 2022-11-27 09:52:04 -05:00
Jörg Thalheim
591d491225 nix_update: use -L to get more logs when building 2022-11-27 13:12:06 +01:00
figsoda
f0490e7196
Merge branch 'master' into unstable 2022-11-21 15:07:18 -05:00
figsoda
0cbea8ba78 inherit stdout and stderr when appropriate 2022-11-17 12:46:56 -05:00
figsoda
4fab744eac remove shebangs in inexecutable files, format with black and isort 2022-11-14 17:14:09 -05:00
Jörg Thalheim
72e40caf8e dont pass args[0] to python's argparse 2022-11-14 16:51:31 +01:00
figsoda
e826940d01 fix parse_args 2022-11-14 10:43:14 -05:00
figsoda
409b07e2e0 fix typo 2022-11-14 10:37:41 -05:00
Jörg Thalheim
570a6ac64b add changelog feature and add integration test for it 2022-11-14 15:38:56 +01:00
Jörg Thalheim
4dbc76a572 also run git-add when version was not bumped
Otherwise git-commit with the template won't work
2022-11-14 14:15:17 +01:00
Jörg Thalheim
06dd722d36 allow to manually override filename that is patched 2022-06-14 11:22:01 +02:00
Jörg Thalheim
70a39cea1f
fix finding git directories for non-default import paths 2022-05-19 10:51:43 +02:00
Jörg Thalheim
501befb415
don't override existing experimental features
This way nix-update can be used on repos that uses flake builtins.
2022-05-19 09:52:17 +02:00
Sandro Jäckel
1f6af68d87
Do not stage files when updating 2022-02-15 21:08:45 +01:00
schnusch
0f0bd7f9b3 use Version objects instead of version number strings
Add the optional attribute `rev` that is also replaced by `replace_version`
if present.
2022-01-19 20:33:18 +01:00
schnusch
3137aef4fd compose commit message in format_commit_message 2022-01-17 01:22:44 +01:00
schnusch
380e6e4e41 add --write-commit-message for use in scripting 2022-01-17 01:22:44 +01:00
Jörg Thalheim
2f498d50d7 don't require valid version if --version=skip 2021-08-26 15:45:05 +02:00
Jörg Thalheim
777a5fca04
Apply suggestions from code review 2021-02-22 04:52:27 +00:00
Tim Steinbach
47b25c5a65
Fix --format
If used in combination with --commit, the changes
were previously not staged and hence left uncommitted
2021-02-21 17:15:00 -05:00
Tim Steinbach
76cf63bbe2
Add --format flag
The flag will invoke nixpkgs-fmt
2021-02-21 13:15:29 -05:00
Jörg Thalheim
b9558b2a1e fix nix-update if not commit flag is passed 2021-02-21 18:24:26 +01:00
Tim Steinbach
41929e6613
Add --review flag 2021-01-28 09:40:19 -05:00
Jörg Thalheim
8bfdad152f
refactor stable/unstable versions and regex filtering 2021-01-25 00:30:37 +01:00
Tim Steinbach
caf298f4f0
Add --unstable-version argument
Enabling this flag will include all versions
containing '-' and '+' from being considered valid.
As per SemVer, these are the separators for unstable
versions (i.e. "-RC2", "+abcdef" suffixes).
2021-01-18 12:00:14 -05:00
Jörg Thalheim
8fb6c5e6c6
Merge pull request #31 from NeQuissimus/version_extract 2020-12-25 17:40:55 +00:00
Tim Steinbach
7d487d245a
Allow extracting version information
This can be used to remove tag prefixes, suffixes or similar

Closes #29
2020-12-25 10:27:50 -05:00
Tim Steinbach
6bc1c4573f
Check return status for build/test
Updating failed if either of these return a non-zero return
code and subsequent actions (i.e. `git commit`) should not be
invoked.
2020-12-22 14:21:06 -05:00