-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Pkg.update() fails for package with local-only branch #16372
Comments
That is the correct behavior. You cannot merge updates, which usually come from remote master branch, into your local branch. |
Maybe we can suppress the backtrace for this specific "There is no tracking information for the current branch" error. Lets do that only on a case by case basis as we see them happen from real usage though. edit: might also be useful to include the branch name in the error message |
You could see branch name by running |
I don't think we should suppress backtraces unless we've seen something at least once and know it's harmless and expected to happen fairly often. There are bugs that happen intermittently and won't be reproducible by calling edit: |
Thanks for getting to the core of this. The main part that isn't clear here is that everything that was supposed to succeed, did so. |
@wildart but isn't it the case here that there is no remote tracking branch so there is nothing to update? I agree that we shouldn't be doing anything clever here and try to update from remote master or something like that. But everybody who does local package development, without creating a remote branch for the local branch is going to run into this. |
In order to update a local branch, it needs a remove tracking branch specified - no exceptions. Indeed, nothing clever should be done in this case. I believe we create tracking branch when you do
|
How about we change the current warning which is quite noisy and looks scary, to something more succinct like "Did not update package X, because no remote tracking branch is specified." It confused me because it says "Updated finished with errors", but for me not updating a branch that has no remote branch is not an error, but rather expected behaviour. |
I'm having trouble with this as I've updated a package locally that I'm developing (and previously published in METADATA). Now I'd like to publish the updated package, but I can't |
This has changed considerably with the new Pkg. If still an issue, please open at https://github.com/JuliaLang/Pkg.jl |
Specifically, I have
Graphs.jl
checked out on a branch which does not exist remotely:Pkg.update()
doesn't like this:This is on a fresh master:
The text was updated successfully, but these errors were encountered: