Skip to content
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

Error: No such file or directory - unzip #5

Closed
mmistakes opened this issue Oct 20, 2017 · 4 comments
Closed

Error: No such file or directory - unzip #5

mmistakes opened this issue Oct 20, 2017 · 4 comments

Comments

@mmistakes
Copy link

mmistakes commented Oct 20, 2017

Guessing this is likely a Windows issue, but wanted to log it just in case I'm doing something wrong.

On a new jekyll new site:

  1. Add gem "jekyll-remote-theme" to Gemfile
  2. Remove theme: minima and replace with remote_theme: mmistakes/jekyll-theme-basically-basic
  3. Add jekyll-remote-theme to plugins array in _config.yml
  4. Run bundle exec jekyll build --verbose
E:\Users\Michael.Rose\Documents\Repositories\remote-theme-test>bundle exec jekyll build --verbose
  Logging at level: debug
Configuration file: E:/Users/Michael.Rose/Documents/Repositories/remote-theme-test/_config.yml
         Requiring: jekyll-feed
         Requiring: jekyll-remote-theme
         Requiring: kramdown
            Source: E:/Users/Michael.Rose/Documents/Repositories/remote-theme-test
       Destination: E:/Users/Michael.Rose/Documents/Repositories/remote-theme-test/_site
 Incremental build: disabled. Enable with --incremental
      Generating...
      Remote Theme: Using theme mmistakes/jekyll-theme-basically-basic
      Remote Theme: Downloading https://codeload.github.com/mmistakes/jekyll-theme-basically-basic/zip/master to E:/Users/MICHAE~1.ROS/AppData/Local/Temp/jekyll-remote-theme-20171020-27928-1x22e5m.zip
      Remote Theme: Unzipping E:/Users/MICHAE~1.ROS/AppData/Local/Temp/jekyll-remote-theme-20171020-27928-1x22e5m.zip to E:/Users/MICHAE~1.ROS/AppData/Local/Temp/jekyll-remote-theme-20171020-27928-4jguu7
jekyll 3.6.1 | Error:  No such file or directory - unzip

Will report back the experience on mac OS when I get a chance to test it.

@pathawks
Copy link

Probably related to #3

Does Windows not have any unzip command at all?

@benbalter
Copy link
Owner

@mmistakes if you are able to change your project's Gemfile to the following and run bundle update, it might work:

gem 'jekyll-remote-theme', github: 'benbalter/jekyll-remote-theme', branch: 'rubyzip'

@mmistakes
Copy link
Author

👍 That does the trick. No more errors on Windows and the remote theme files are pulled in as expected.

@benbalter
Copy link
Owner

@mmistakes 🤘 Thanks for testing it out. Released v0.2.0 which should include both #7 as well as #6 which should help Windows compatability (pure Ruby versus shelling out to command line).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants