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

tmp/ nuked when output_dir is changed in preprocessor #1248

Closed
denisdefreyne opened this issue Nov 16, 2017 · 1 comment
Closed

tmp/ nuked when output_dir is changed in preprocessor #1248

denisdefreyne opened this issue Nov 16, 2017 · 1 comment

Comments

@denisdefreyne
Copy link
Member

Steps to reproduce

  1. Create a new site

  2. Create content/stuff.html with some content

  3. Create the following Rules file:

    preprocess do
      @config[:output_dir] = 'ootpoot'
    end
    
    passthrough '/**/*'
    
  4. Run nanoc --verbose

  5. Run nanoc --verbose again

Expected behavior

  • Nanoc shows skip for ootpoot/stuff.html
  • The tmp/nanoc directory has some contents

Actual behavior

  • Nanoc shows identical for ootpoot/stuff.html
  • The tmp/nanoc directory is empty

Details

Cleanup#cleanup_unused_stores removes the tmp directory based on the hash of the output directory, after it’s been changed.

@denisdefreyne
Copy link
Member Author

CC @gpakosz

denisdefreyne added a commit that referenced this issue Nov 16, 2017
Pass non-preprocessed output_dirs to cleanup stage
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