Commit Graph

14 Commits

Author SHA1 Message Date
Timo Kaufmann
8c757f4dc9 vimPlugins: backoff on timeout in update.py
Updating vim-plugins recently started timing out regularly for me. It
may have to do with an ISP switch on my side, but I don't think that
should cause timeouts. I guess I'm probably not the only one
experiencing this, so in this comment I introduce exponential backoff.
Every request will be retried up to 3 times (3 seconds, 6 seconds, 12
seconds delay).
2019-11-19 21:10:32 +01:00
Timo Kaufmann
61c60bad22 vimPlugins: fix formatting and typing in update.py 2019-11-19 21:10:13 +01:00
Matthieu Coudron
3820ff9c8b vim update.py: allow different in and out files
...also adds an argparse cli parser.
2019-11-19 18:41:11 +09:00
Galen Abell
8eb8fa153e vimPlugins: Add alias support to update.py
Plugins in `plugin-list` can now optionally specify an alias name, to
avoid naming collisions if plugins have the same repo name. For example,
specifying `author/common-plugin as author-common-plugin` will use
`author-common-plugin` as the package name in `generated.nix`.
2019-11-06 10:55:51 -08:00
Tobias Mayer
134a061d93 Restrict vim update.py to generated.nix 2019-02-22 15:49:43 +01:00
Roman Volosatovs
f8ff164806 vimPlugins: Fix update.py, update (#53081) 2018-12-30 18:13:00 +01:00
Timo Kaufmann
96b6396101 vimUtils.buildVimPlugin: derive name from pname and version 2018-12-27 10:34:14 +01:00
Timo Kaufmann
b352318cd1 vimUtils: represent vim plugins as derivations
Vim plugins were previously represented as strings by default,
necessitating a `knownPlugins` set. Backwards compatibility is kept
(strings are still accepted), so vam plugins should continue to work.
2018-12-24 23:41:41 +01:00
Jörg Thalheim
6fdec2b3a4 vimPlugins: update.py also needs nix-prefetch-git 2018-09-20 08:42:46 +01:00
Jörg Thalheim
dec78a23d1 vimPlugins: only update generated.nix if all plugins were downloaded
https://github.com/NixOS/nixpkgs/pull/46728#discussion_r217915996
2018-09-16 16:59:41 +01:00
Jörg Thalheim
c4a621d4a6 vimPlugins: run update script in empty environment 2018-09-12 07:51:48 +01:00
Jörg Thalheim
ac415ca68e vimPlugins: do not pick up aliases from nixpkgs 2018-09-12 07:51:03 +01:00
Roman Volosatovs
8f4c5c72ac
vimPlugins: Fix update.py, add/update plugins 2018-09-10 21:41:04 +02:00
Jörg Thalheim
8ccdd29578 vim-plugins: add missing update.py
This file was accidentally not included in 953199fd82
2018-09-09 23:19:41 +01:00