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
Closed

#raw_path does not generate the proper dependency #1097

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

Comments

@ddfreyne
Copy link
Member

@ddfreyne 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
Let #raw_path require rep to be compiled
@ddfreyne ddfreyne added this to the 4.6.2 milestone Mar 3, 2017
@ddfreyne ddfreyne added this to the 4.6.2 milestone Mar 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant