Skip to content
This repository has been archived by the owner on Aug 28, 2019. It is now read-only.

Can't build from master : invalid date in front matter? #105

Open
morgantaschuk opened this issue Oct 23, 2018 · 1 comment
Open

Can't build from master : invalid date in front matter? #105

morgantaschuk opened this issue Oct 23, 2018 · 1 comment

Comments

@morgantaschuk
Copy link

I can't build from a fresh checkout in master, commit bd08fb2.

I'm running jekyll 3.8.4, ruby 2.3.1p112 (2016-04-26) [x86_64-linux-gnu], Bundler version 1.16.1 on Ubuntu 16.04.5 LTS.

git clone [email protected]:mmistakes/skinny-bones-jekyll.git
cd skinny-bones-jekyll/
bundle install --path vendor/bundle
bundle exec jekyll build --verbose

And the error

  Logging at level: debug
Configuration file: /media/mtaschuk/Data/git/skinny-bones-jekyll/_config.yml
       Deprecation: The 'gems' configuration option has been renamed to 'plugins'. Please update your config file accordingly.
         Requiring: jekyll-sitemap
         Requiring: jekyll-gist
         Requiring: jekyll-feed
            Source: /media/mtaschuk/Data/git/skinny-bones-jekyll
       Destination: /media/mtaschuk/Data/git/skinny-bones-jekyll/_site
 Incremental build: disabled. Enable with --incremental
      Generating... 
       EntryFilter: excluded /package.json
       EntryFilter: excluded /Gemfile.lock
       EntryFilter: excluded /Gemfile
       EntryFilter: excluded /Gruntfile.js
       EntryFilter: excluded /README.md
       EntryFilter: excluded /LICENSE
       EntryFilter: excluded /vendor/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/importee.less
           Reading: vendor/bundle/ruby/2.3.0/gems/jekyll-sitemap-1.2.0/spec/fixtures/_posts/2016-04-03-错误.html
           Reading: vendor/bundle/ruby/2.3.0/gems/jekyll-sitemap-1.2.0/spec/fixtures/_posts/2015-01-18-jekyll-last-modified-at.md
           Reading: vendor/bundle/ruby/2.3.0/gems/jekyll-sitemap-1.2.0/spec/fixtures/_posts/2014-03-02-march-the-second.md
           Reading: vendor/bundle/ruby/2.3.0/gems/jekyll-sitemap-1.2.0/spec/fixtures/_posts/2016-04-01-错误.html
           Reading: vendor/bundle/ruby/2.3.0/gems/jekyll-sitemap-1.2.0/spec/fixtures/_posts/2014-05-11-exclude-this-post.md
           Reading: vendor/bundle/ruby/2.3.0/gems/jekyll-sitemap-1.2.0/spec/fixtures/_posts/2016-04-02-错误.html
           Reading: vendor/bundle/ruby/2.3.0/gems/jekyll-sitemap-1.2.0/spec/fixtures/_posts/2013-12-12-dec-the-second.md
           Reading: vendor/bundle/ruby/2.3.0/gems/jekyll-sitemap-1.2.0/spec/fixtures/_posts/2014-03-04-march-the-fourth.md
           Reading: vendor/bundle/ruby/2.3.0/gems/jekyll-3.1.6/lib/site_template/_posts/0000-00-00-welcome-to-jekyll.markdown.erb
             Error: could not read file /media/mtaschuk/Data/git/skinny-bones-jekyll/vendor/bundle/ruby/2.3.0/gems/jekyll-3.1.6/lib/site_template/_posts/0000-00-00-welcome-to-jekyll.markdown.erb: Invalid date '<%= Time.now.strftime('%Y-%m-%d %H:%M:%S %z') %>': Document 'vendor/bundle/ruby/2.3.0/gems/jekyll-3.1.6/lib/site_template/_posts/0000-00-00-welcome-to-jekyll.markdown.erb' does not have a valid date in the YAML front matter.
             ERROR: YOUR SITE COULD NOT BE BUILT:
                    ------------------------------------
                    Invalid date '<%= Time.now.strftime('%Y-%m-%d %H:%M:%S %z') %>': Document 'vendor/bundle/ruby/2.3.0/gems/jekyll-3.1.6/lib/site_template/_posts/0000-00-00-welcome-to-jekyll.markdown.erb' does not have a valid date in the YAML front matter.
@morgantaschuk
Copy link
Author

Ah, I just realized that of course it's because I'm directing my bundle install to ./vendor. However, because it's what bundler recommends, I would suggest excluding it from _config.yml. I'll make a PR shortly.

skinny-bones-jekyll$ bundle install
Fetching gem metadata from https://rubygems.org/..........
Using addressable 2.4.0
Using bundler 1.16.1
Fetching colorator 0.1


Your user account isn't allowed to install to the system RubyGems.
  You can cancel this installation and run:

      bundle install --path vendor/bundle

  to install the gems into ./vendor/bundle/, or you can enter your password
  and install the bundled gems to RubyGems using sudo.

  Password: 

I made a PR to exclude vendor from the build: #106

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

No branches or pull requests

1 participant