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
ddfreyne opened this Issue Mar 3, 2017 · 0 comments

Comments

Projects
None yet
1 participant
@ddfreyne
Copy link
Member

ddfreyne commented Mar 3, 2017

(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

ddfreyne added a commit that referenced this issue Mar 3, 2017

Merge pull request #1099 from nanoc/gh-1097
Let #raw_path require rep to be compiled

@ddfreyne ddfreyne 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
You can’t perform that action at this time.