Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vim-plugins: rewrite updater #46394

Merged
merged 2 commits into from Sep 9, 2018
Merged

vim-plugins: rewrite updater #46394

merged 2 commits into from Sep 9, 2018

Conversation

Mic92
Copy link
Member

@Mic92 Mic92 commented Sep 8, 2018

A new python script has been added to replace the aged viml-based
updater. The new updater has the following advantages:

  • use rss feeds to check for updates quicker
  • parallel downloads & better caching
  • uses proper override mechanism instead of text substitution
  • update generated files in-place instead of having to insert updated plugins manually

Automatically adding plugin dependencies based on plugin metadata has been
not re-implemented in this updater.
This mechanism has been mostly been used by Mark Weber's plugins, which seem to
no longer receive regular updates.
This could be implemented in future as required.

Motivation for this change
Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Fits CONTRIBUTING.md.

@Mic92
Copy link
Member Author

Mic92 commented Sep 8, 2018

nix-review is happy with the new version.

@LnL7
Copy link
Member

LnL7 commented Sep 8, 2018

I had a feeling about this when seeing 182f1fc. 😃

@Mic92 Mic92 requested a review from dtzWill September 8, 2018 21:27
@Mic92
Copy link
Member Author

Mic92 commented Sep 8, 2018

It is much more fun to add vim plugins now.

@Mic92 Mic92 force-pushed the vim-updater branch 2 times, most recently from 649ea94 to 555b7a3 Compare September 9, 2018 07:59
@Mic92
Copy link
Member Author

Mic92 commented Sep 9, 2018

Now with documentation! I will backport the first commit, where I extended the vim plugin documentation.

A new python script has been added to replace the aged viml-based
updater. The new updater has the following advantages:

- use rss feeds to check for updates quicker
- parallel downloads & better caching
- uses proper override mechanism instead of text substitution
- update generated files in-place instead of having to insert updated plugins manually

Automatically reading `dependencies` from the plugins directory has been
not re-implemented.
This has been mostly been used by Mark Weber's plugins, which seem to
no longer receive regular updates.
This could be implemented in future as required.
@Mic92 Mic92 merged commit 484e180 into NixOS:master Sep 9, 2018
@Mic92 Mic92 deleted the vim-updater branch September 9, 2018 12:46
@rvolosatovs
Copy link
Member

How can the update.py script itself be accessed? Is it in the repository?
git ls-tree 484e180 pkgs/misc/vim-plugins -r | rg 'update.py' returns 0 results.
Am I missing something?

@Mic92
Copy link
Member Author

Mic92 commented Sep 9, 2018

Sorry after a git-reset I accidentally did not include this file again. I added it in 8ccdd29

Mic92 added a commit to Mic92/nixpkgs that referenced this pull request Sep 23, 2018
This is a left-over from NixOS#46394
We no longer use this.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants