-
-
Notifications
You must be signed in to change notification settings - Fork 51
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
git apply
fails depending on git configuration
#32
Comments
|
Maybe changing the command line to |
|
FWIW, I don't think it's a good idea to depend on
|
@b-dean the entire idea of applying patches is a bad idea. if you go back to the readme of mini_portile will see is not aimed for you to put at the gem installation process (make it part of https://github.com/luislavena/mini_portile#another-port-system-srsly Building the dependencies at runtime has never been the intention of mini_portile, as is not a replacement of end-users port system and most definitely will fail, simply because it assumes a developer machine with certain tools installed. RubyInstaller's DevKit do not bundle Git or This git dependency is definitely a side-effect that we need to workout and need more thinking on a proper solution. |
For what it's worth, many folks bundling mini_portile aren't declaring the git dependency at all. This has broken nokogiri upstream for many, many folks. |
I think you mean the need to have I don't think the dependency on mini_portile is the issue, but the usage of patching itself. I'm really sorry people get hit by this issue, definitely this particular usage of mini_portile was not part of the original intention of the tool. Will take a look to ways to workaround this issue in mini_portile, perhaps raising an exception when But projects depending on patching will need to state its dependencies for now. Again, really sorry for the inconvenience this has caused. |
Hi @luislavena, No problem at all. I totally understand mini_portile was not intended to be used this way. I just figured I'd make that previous comment so you knew what was happening. I figure you're going to hear about it from folks coming to report it as a bug, so I figured you should be aware of the impact. It sounds like @flavorjones has a workaround for now, by pinning the mini_portile gem to an older version. Cheers, |
For now Nokogiri will monkey-patch |
As in my note to this nokogiri commit is updating the |
@jonforums will keep the conversation here instead of nokogiri's commit for the sake of my mental sanity. The reason Seems there is a workaround for that since then: |
@luislavena the folks at http://www.sourcetreeapp.com/ have chosen the route of bundling I've not played with it enough to see if I like it, but one issue remains that I do dislike: I'm going to look more into it, but I think removing the need for Nokogiri's monkey patch by a guarded patch capability in I'm also initially positive on us adding msys2 Thoughts? |
The xml community cookbook has a dependency on nokogiri [1]. However, nokogiri just did a new release [2], and it uses a new version of mini_portile [3], which has a brand new dependency on 'git apply' being a working command. I have notified the nokogiri project [4], but I also think it's important to pin the xml cookbook to known working versions of dependencies (instead of 'any nokogiri version you can find'). [1] https://github.com/opscode-cookbooks/xml/blob/master/recipes/ruby.rb#L35 [2] https://groups.google.com/forum/#!topic/nokogiri-talk/dPtmByhszRA [3] flavorjones/mini_portile#32 [4] sparklemotion/nokogiri#1102
Please note that nokogiri's patch does not affect windows users. Nokogiri
|
@flavorjones Nokogiri's 1.6.2.1 monkey patch to Source 1.6.2 built fine with my mingw-w64 4.9.0 DevKit but 1.6.2.1 appears to fail due to the current monkey patch hardcoding use of |
Manually adding msys 2.6.1 patch to my DevKit failed to allow me to build Nokogiri 1.6.2.1 from source. This should have worked. Looks like more problems to spelunk (someone mentioned quoting on another issue). http://paste.ubuntu.com/7464637/ libiconv's
|
Oh, I didn't expect the built process through mini_portile might be run on a non-Unix shell. |
@knu maybe on shellescape/shelljoin, but it might be something else. Shelljoin is also used in 1.6.2 that I could build from source. It may be that there is something in this nokogiri 1.6.2 and 1.6.2.1 diff of Nothing in the mini_portile 0.5.3 and 0.6.0 diff seems to be a problem. |
@jonforums Look at the line 208. Try changing |
@knu with mingw.org http://paste.ubuntu.com/7468330/ I'm not familiar with the nokogiri build tooling and get these failures when trying to create a source gem:
Looks like things were meant to be built from Linux, but I don't have time to try to build a gem on my Arch box. If you'll show me a shortcut on how to build the nokogiri source gem on windows, I'll double check that it installs OK. It should given the I'm still advocating that you update the mini_portile monkey patch to implement guarded fallback: If This gives windows users who build nokogiri from source multiple options. It also means that we (rubyinstaller committers) do not have consider releasing a new devkit version for just |
For what it's worth, 0.7.0.rc1 will contain patches from #54 which will try to use |
My
~/.gitconfig
had the settingautocrlf = input
.For some reason this caused mini_portile to fail to apply patches with
git apply
. I could not install nokogiri due to the problem. sparklemotion/nokogiri#1095The solution in this case was to change my git configuration by removing the autocrlf setting.
Is there a better way to address this issue?
The text was updated successfully, but these errors were encountered: