-
-
Notifications
You must be signed in to change notification settings - Fork 11.3k
GitDownloadStrategy change breaks HEAD fetch for Julia #12024
Comments
Link to the copy of the formula you're using? |
Of course, sorry: https://github.com/staticfloat/homebrew-science/blob/0f519051c358926ea19c80ed0224ba70bb37848e/julia.rb (The formula isn't polished yet, still working on some dependencies, etc...) Note that it depends on a bunch of stuff that has not yet been accepted into |
Works fine here. |
Initial fetch, and a second install after the initial clone: https://gist.github.com/2583606 |
I deleted the cached git repository, and it works now (both initial clone and update). Something must have been screwed up with my local git repo. |
Looks like this is happening when git 1.7.7.5 from XCode is used to do the initial clone:
|
I just built 1.7.7.5 from source and I can reproduce it there. I'll investigate it further tomorrow. |
We are seeing the same thing, even with a newer version of Git installed via Homebrew.
|
It seems like if the older version did the initial clone, then even a newer version will fail to update---can't tell from your example which version did the initial clone. Could you try deleting the MacVim repo from |
We can drop the |
One thing we should check is to see if this happens with non-GitHub URLs---just on the off chance that GitHub is doing something wrong. |
Looking at the git code, it appears that error can only be triggered over HTTP. So I would try some other smart HTTP hosts (I know llvm HEAD supports shallow clones; to get Homebrew to use them, though, one has to make |
I can reproduce this on four different git versions, including the latest, but I think this may actually boil down to a misuse of the It is supposed to "deepen" the clone by |
Should be fixed by 8a1c2ec. |
The --depth option is apparently more nuanced that I had originally thought, and while it does not actually break repositories, repeatedly using "--depth 1" can cause problems depending on the structure of the history. Luckily, we don't actually need it to prevent the entire repository from being fetched as long as the fetch respec is set correctly, which we do since 7718c93. Fixes Homebrew#12024. Signed-off-by: Jack Nagel <[email protected]>
The --depth option is apparently more nuanced that I had originally thought, and while it does not actually break repositories, repeatedly using "--depth 1" can cause problems depending on the structure of the history. Luckily, we don't actually need it to prevent the entire repository from being fetched as long as the fetch respec is set correctly, which we do since 7718c93. Fixes Homebrew#12024. Signed-off-by: Jack Nagel <[email protected]>
The --depth option is apparently more nuanced that I had originally thought, and while it does not actually break repositories, repeatedly using "--depth 1" can cause problems depending on the structure of the history. Luckily, we don't actually need it to prevent the entire repository from being fetched as long as the fetch respec is set correctly, which we do since 7718c93. Fixes Homebrew#12024. Signed-off-by: Jack Nagel <[email protected]>
I attach here repo with similar problem. Try to call This fails:
This succeeds:
|
I'm (still) working on the Julia formula, and I've run into an interesting problem:
Apparently, a recent commit changed how git URLs are fetched, and there's something special about the Julia repository, (https://github.com/JuliaLang/julia.git) because it gives the following error when trying to install:
I googled around a bit, but can't really find much information on this error. @jacknagel, any idea why your recent changes would cause this, and what I can do to fix it? Could it be an upstream issue? (I tried a few other HEAD formulae, but they all worked)
The text was updated successfully, but these errors were encountered: