-
-
Notifications
You must be signed in to change notification settings - Fork 10k
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
Layout: set relative_path without using Pathname #5164
Conversation
Presently, on a Windows machine, you get an ArgumentError on Windows: Generating... C:/Ruby23-x64/lib/ruby/2.3.0/pathname.rb:520:in `relative_path_from': different prefix: "/" and "C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/minima-1.0.1" (ArgumentError) from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/jekyll-3.2.0/lib/jekyll/layout.rb:61:in `relative_path' from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/jekyll-3.2.0/lib/jekyll/renderer.rb:161:in `place_in_layouts' from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/jekyll-3.2.0/lib/jekyll/renderer.rb:71:in `run' This doesn't affect filesystems which do not use drive names.
This fixed #4677 for me (in a fresh jekyll instance). |
@parkr: confirmed, it fixes the issue for me on Windows. |
LGTM. @jekyll/core, would you mind giving this another LGTM? |
🆒 @jekyllbot: merge +bug |
@parkr: really appreciate it. Do you think the remaining Windows failures could be fixed so that it's easier to spot any failures in the future? |
@XhmikosR Yeah, I would like to do that. I'll put together an issue tomorrow (I'm in SF) and hopefully some of our amazing fellow contributors can lend a hand. 😄 |
Presently, on a Windows machine, you get an ArgumentError on Windows:
This patch attempts to fix that. Creating a PR so I can use AppVeyor.
This doesn't affect filesystems which do not use drive names.
/cc @jekyll/windows