Commit Graph

14 Commits

Author SHA1 Message Date
Austin Horstman
fe52f190b9 vim/kakoune updaters: preserve src.tag metadata
Keep fetcher tag metadata when reading current plugin state from Nix.

The updater needs to know whether a plugin was fetched by tag or by commit.
Without carrying src.tag through, tagged sources are read back as if rev were
always the canonical source identifier, which breaks tag-aware comparisons and
cache behavior later in the update flow.
2026-04-19 10:04:57 -05:00
Emily
00c40f1069 python313Packages.nixpkgs-plugin-update: init from maintainer script
We have machinery for Python packaging, so let’s make use of
it. This also helps unblock moving `by-name` overrides out of
`all-packages.nix`, as it was previously being used to work around
`nixpkgs-vet` forbidding the direct reference to the path.
2025-10-20 19:32:57 +01:00
PerchunPak
3c2cc3049d pluginupdate.py: use newer syntax for types 2024-11-10 16:53:32 +01:00
PerchunPak
ecee72e247 pluginupdate.py: add support for adding/updating individual plugins 2024-11-10 01:42:51 +01:00
PerchunPak
a6fe798a01 pluginupdate.py: fix bugs and add improvements
I fixed many hidden bugs and made some small improvements. The main
reason this was separated from #336137 is to fix the sorting issue.

Before this commit, sorting for Vim plugins was broken and worked by
what was fetched first. This is because the sorting was done by empty
strings (the default value in CSV is not None but an empty string). This
PR fixes it and also moves sorting from the user to the library (from
`vim/plugins/update.py` to `pluginupdate.py`) to prevent such weird
issues and duplication of code.
2024-11-09 00:20:38 +01:00
PerchunPak
8b503ec432 pluginupdate.py: reformat with ruff
Ruff - an extremely fast Python linter and code formatter, written in Rust.
2024-11-09 00:20:38 +01:00
Aleksey Mikhaylov
72e5e4ea54 kakounePlugins: updated the 10-22-2023 2023-10-22 16:48:15 +03:00
Victor Engmark
625e6657c1 kakoune: Remove no-op if/else
Presumably copy/pasted from `maintainers/scripts/pluginupdate.py`.
2023-06-15 10:59:24 +12:00
Matthieu Coudron
351cec5db3 use subcommands in plugin updaters (#223164)
* update.py: introduce subparsers for plugin updaters

This is preliminary work to help create more powerful plugin updaters.
Namely I would like to be able to "just add" plugins without refreshing
the older ones (helpful when github temporarily removes a user from
github due to automated bot detection).

Also concerning the lua updater, we pin some of the dependencies, and I
would like to be able to unpin the package without editing the csv
(coming in later PRs).

* doc/updaters: update command to update editor plugins

including vim, kakoune and lua packages

Co-authored-by: figsoda
2023-04-14 22:02:17 +02:00
Andrew Abbott
2df2a508dc kakounePlugins: Fix update.py
I tried to run this and it failed. These changes made it work again.

I looked at maintainers/scripts/pluginupdate.py and how the types
differed to make this fix.
2023-01-28 09:29:52 +11:00
Matthieu Coudron
6f3482f640 update.py: fix for kakoune/luarocks 2022-03-08 10:53:11 +01:00
figsoda
5aaa5f5e75 pluginupdate.py: fix compatibility with nix 2.4 2021-11-13 17:33:43 +01:00
Matthieu Coudron
8ddad244ea update-luarocks-packages: use pluginupdate.py
Cleans up the common interface between the updaters.
Restores the ability to regen the lua packages in parallel.
2021-08-12 01:14:58 +02:00
Flakebi
3ad7ba46c5 vimPlugins: add vim and kakoune update script 2021-02-25 10:05:22 +01:00