-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
apply_patch failure #119
Comments
Hi! I'm having trouble reproducing what you're seeing. I've got an existing project (nokogiri). I'm in a docker container where I've removed
What's different about your setup? How can I reproduce this? |
I'm wondering if it depends on the version of git (2.37.1) or possibly my local ~/.gitconfig? |
Lots of possible variables, for sure, which is what makes this challenging to approach as a maintainer. I absolutely believe that the change in #120 fixes your problem, but I'd like to write a test and understand what's going wrong. A couple of suggestions (choose one) for a reasonable next step:
Or let me know if I can help in any other way? |
Correction: the |
@flavorjones haven't had time to dig into tests yet, but the issue came up when I was working on building another gem. winebarrel/ruby-jq#20 |
I still need help reproducing this. |
@flavorjones commands to reproduce, tested on OSX 12.5 (M1) and Debian 11 x86_64. wget https://github.com/btolab/ruby-jq/archive/refs/heads/master.tar.gz
tar xzf master.tar.gz
cd ruby-jq-master
bundle exec rake compile output
|
Thanks for the repro! OK, I understand what's happening now. Many years ago, #69 asked for the ability to work in broken git directories. The fix for that was to specify However, that was not the right thing to do -- for exactly this reason. The presence of a "config" directory is confusing to git, because it thinks it's in a I think the right thing to do is:
and then your use case will work. I'll put together a PR shortly. |
Fixes #119 Co-authored-by: Jeffrey Clark <[email protected]>
Fixes #119 Co-authored-by: Jeffrey Clark <[email protected]>
When git is selected to apply a patch and there is a
config
directory in the base of the source being built, the following error occurs:The text was updated successfully, but these errors were encountered: