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
ddfreyne opened this Issue Nov 16, 2017 · 1 comment

Comments

Projects
None yet
1 participant
@ddfreyne
Member

ddfreyne commented Nov 16, 2017

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.

@ddfreyne

This comment has been minimized.

Show comment
Hide comment
@ddfreyne
Member

ddfreyne commented Nov 16, 2017

CC @gpakosz

@ddfreyne ddfreyne closed this in #1249 Nov 16, 2017

ddfreyne added a commit that referenced this issue Nov 16, 2017

Merge pull request #1249 from nanoc/gh-1248
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