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

#raw_path does not generate the proper dependency #1097

Closed
denisdefreyne opened this issue Mar 3, 2017 · 0 comments
Closed

#raw_path does not generate the proper dependency #1097

denisdefreyne opened this issue Mar 3, 2017 · 0 comments
Milestone

Comments

@denisdefreyne
Copy link
Member

(Summarise the bug in a single line.)

Steps to reproduce

  1. Create a site

  2. echo stuff > content/z.dat

  3. echo lol > content/a.dat

  4. Add this to content/index.html:

    <%= @items.find_all('/**/*.dat').map { |i| File.size(i.reps[:default].raw_path) }.join('-') %>
    
  5. Delete stylesheets and layouts

  6. Replace rules with

    compile '/**/*.html' do
      filter :erb
      write item.identifier
    end
    
    passthrough '/*.dat'
    
  7. Compile site

Expected behavior

output/index.html gets the content 3-6.

Actual behavior

Crash:

Captain! We’ve been hit!

Message:

Errno::ENOENT: No such file or directory @ rb_file_s_size - output/z.dat
denisdefreyne added a commit that referenced this issue Mar 3, 2017
Let #raw_path require rep to be compiled
@denisdefreyne denisdefreyne modified the milestone: 4.6.2 Mar 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant