-
-
Notifications
You must be signed in to change notification settings - Fork 265
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
Contributing guidelines recommend setting the main branch to upstream
remote, but Lazy only supports remotes called origin
#642
Comments
This doesn't really make any sense. When you use The linked bug report to Not sure what sort of error you are getting. I have a local AstroCommunity clone with ~50 remotes that I use regularly. It's in return {
plugins = {
{ "AstroNvim/astrocommunity", dev = true },
},
} I can delete all of the cache/data/state folders and do a reinstall and there is no error. It doesn't clone AstroCommunity since it is in development mode and it's up to me to manage that. I can check out any branch on any remote and it just uses it. |
I guess I missed adding the detail, but I'm not using
It's late for me now, but I'll try to reproduce again tomorrow and share the error (and maybe a video etc) 👍 |
Yeah that is the same. When you specify the directory then lazy does not handle interacting with that folder for git operations. So if you want to use whatever remote you want then you just check out that remote. Lazy will not pull updates for you or anything |
Yeah there should be no folder in your lazy directory, if there is it won't be used |
It will just be using your local directory that you specified. I just tested with this: return {
plugins = {
{ "AstroNvim/astrocommunity", dir = "~/projects/astrocommunity" },
},
} the remotes in that directory are irrelevant to lazy |
Here is an example of what I'm saying: if I do Instead it is showing in I'm guessing you just got a bit confused with how lazy manages repos and what folder it's using. But yeah the folder in |
for you to switch branches you just have to do that yourself. If you want to pull changes, etc. Lazy will not do any git operations on that directory what so ever. So doing like |
I got nerd sniped and tried to reproduce 😓, but I wasn't successful this evening... but I'm tired and I have another idea for tomorrow morning. But I can say with certainty that Lazy is checking out I'm also going to check my browser history to see if I can find the error, because after setting the remote to upstream and then wiping my local install I definitely got an error and IIRC, that error mentioned upstreams. Then when I googled that error I found the issue in the Lazy repo which I linked in my earlier comment. |
A question to help me for tomorrow. I see that |
If it is the case where it is still cloning it. Then you should look into that because it strictly shouldn't be. If it is that indicates it will just not be using your local directory. I would recommend checking lazy to see if it's marked as using your local directory. If not, then you have incorrectly set up development mode for it (either using Also that is entirely up to the user. If they tell it to track stable versions then it will, if not then it won't. Lazy by default doesn't only track versions/tagged releases. It will just pull the latest. |
Checklist
Neovim version (nvim -v)
0.9.1
Operating system/version
macOS 11.5
Terminal/GUI
iterm
Describe the bug
Given a user which has a local copy of
astrocommunity
and is using that for their packages & development, and if the user also has a remote for the astrocommunity which is namedupstream
(as the docs suggest).When the user attempts a fresh install (clean
~/.cache/nvim
~/.local/share/nvim
&~/.local/state/nvim
), the install of all of the plugins will fail becauselazy
seems to not work with remotes named anything other thanorigin
.folke/lazy.nvim#602
I hit this issue and struggled to understand why my things were not installing correctly and my setup was broken, after finding the above link I changed my remote to
origin
, wiped everything and started again and it was successful.I didn't save the error and I can't find it in my history, but the steps to repro should help.
Steps to Reproduce
upstream
remote according to the contributing guidelinesnvim
state files so that lazy / mason etc must re-install~/.cache/nvim
~/.local/share/nvim
&~/.local/state/nvim
nvim
and seelazy
begin to install it's dependenciesastrocommunity
) won't be cloned or something like this.Expected behavior
I guess the contributing guidelines need to be changed to call the remote for the main branch
origin
, either that or we need to lobby for folke/lazy.nvim#602 to be implemented!Screenshots
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: