-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Issues with using tags #174
Comments
The above commit fixes the second problem. The first problem is not reproducible on Travis CI as the default version of Git there is 1.8. The behavior was implemented in 1.7.10:
|
In order the fix the first problem we have to expand the current clone command: from This is really painful. |
@vheon @starcraftman By the way, I'm a bit surprised by the fact that nobody has reported these problems. This, once again, shows that very few actually use tags or branches. |
@junegunn Re first question, man git 1.7 is old, almost 4 years. It really isn't hard to build/replace git from source (we could link instructions). Up to you whether you want to, but I'd be inclined to just recommend min version, like 1.8 or more. We can't go back every time somebody has x outdated version of software y. There's probably people still running python 2.4 or even 2.2, I've no interest in supporting that I can tell you. On a related note, perhaps we need to consider better documenting on the front page README the minimum requirements for each installer option. Like your ruby installer has minimum patch set/RVM, but unless people look inside they don't know that before running. My python I know is >= 2.6. Git >= 1.8 and so on. Might prevent people trying combinations that won't ever work. It doesn't surprise me that nobody uses tags/branches. Apart from the odd time a plugin is broken for more than a day I'd say its not very useful to track a different branch/tag. More importantly, it prevents you from getting updates from plugin authors. That kinda defeats the whole point of a plugin manager. Otherwise, there's a small set of users with conservative vimrcs that probably use em for stable plugins. |
@starcraftman Thanks for your feedback. Plugin manager is a very special kind of software where compatibility is a very important virtue. It is especially so when it is for Vim, which people have been using for decades. So I've been trying to make it as compatible and available as possible so far. But if doing so means hurting the quality and the maintainability of the code - like in this case - yeah, we would have to refrain from doing it and give up supporting the old versions.
I agree, I'll put it somewhere on the wiki page or on README after merging your work. |
@junegunn Oh I know compatibility is nice, especially since vim runs on all kinds of systems! Your latter point is what I was getting at, at some point going back makes code poor. Somebody's always gonna want it to run on [insert old config], sometimes the answer is just no. |
The older documentation of vim-plug suggested that the second string parameter to Plug command was for both branches and tags. But we've realized that tags and branches are not interchangeable (#174), and it is now recommended that the user explicitly specify whether it's a branch or a tag. The now-undocumented second parameter is currently for branches, but I'd like to change it for tags, as the use of tags are much more common.
We had a few regressions lately (#166, #170, #173), so I'm trying to expand the coverage of Travis CI build by running the tests not only with the recent version of Vim, but with the older
vim-nox
package of Ubuntu 12.04.However, I've noticed that a couple of tests fail because of the inconsistent behavior of the stock git (1.7.9.5).
When cloning a repository with tag
The failing test cases expect the second behavior. However, specifying the name of a branch does not result in inconsistency:
Tags don't work with
git merge --ff-only origin/TAG_NAME
This is another bug I found, which makes it impossible to update plugins with designated tags. It fails regardless of the version of git.
This regression was introduced by 0e9fa67 for fixing #139.
So, basically, it looks like tags and branches are not interchangeable.
The text was updated successfully, but these errors were encountered: