Compass / compass

Compass is no longer actively maintained. Compass is a Stylesheet Authoring Environment that makes your website design simpler to implement and easier to maintain.
http://compass-style.org
Other
6.72k stars 1.18k forks source link

[compass clean --dry-run] Does not obey "dry-run" directive #1205

Open nathanbrauer opened 11 years ago

nathanbrauer commented 11 years ago

Here's an example...

nathan@mcs:~/Web/svn/com.example/trunk/docroot/_assets/locked$ compass clean --dry-run
   remove images/common/awards-sbc0e826db3.png 
   remove images/common/pointers-sce372a76ff.png 
   remove images/small-medium-business/why-example/icons-sd3c756449f.png 
   remove images/small-medium-business/smb-common-sf074ea4905.png 
   remove images/global-enterprise/services-support-sa393300fa2.png 
   remove images/global-enterprise/small-icons-s9141263c6c.png 
   remove images/global-enterprise/large-icons-sc8415ce577.png 
   remove images/small-medium-business-s60af95861b.png 
   remove images/homepage/customer-testimonial-profiles-sc4569cd9fe.png 
   remove images/homepage/customer-testimonial-logos-s5c7f42616d.png 
   remove images/homepage/rotators-s59248fefd2.png 
   remove images/homepage/dg-promos-s83c9cfa6cf.png 
   remove images/template/ui-s34fc5bffcc.png 
   remove images/template/social-footer-s262478b9ae.png 
   remove images/resources/media-icons/smedia-icons-s3d2d434ff1.png 
   remove images/resources/media-icons/smedia-icons-sbc349627b5.png 
   remove images/resources/media-icons-s7cbcf4519e.png 
   remove images/resources/type-icons-s49e151c49d.png 
   remove images/resources/media-icons-sbe488e580b.png 
nathan@mcs:~/Web/svn/com.example/trunk/docroot/_assets/locked$ cd styles/
nathan@mcs:~/Web/svn/com.example/trunk/docroot/_assets/locked/styles$ compass clean --dry-run
   remove .sass-cache/ 
   remove generated/ie.css 
   remove generated/template.css 
   remove generated/print.css 
nathan@mcs:~/Web/svn/com.example/trunk/docroot/_assets/locked/styles$ ll
total 36
drwxrwxr-x 6 nathan www-data 4096 Mar  7 10:19 ./
drwxrwxr-x 8 nathan www-data 4096 Feb 20 14:14 ../
-rw-rw-r-- 1 nathan www-data 1027 Feb  9 04:25 config.rb
drwxrwxr-x 2 nathan www-data 4096 Mar  7 10:19 generated/
drwxrwxr-x 2 nathan www-data 4096 Feb  9 04:45 lib/
-rw-rw-r-- 1 nathan www-data 5431 Feb  9 04:25 READ ME BEFORE TOUCHING STYLES
drwxrwxr-x 4 nathan www-data 4096 Mar  7 10:02 scss/
drwxrwxr-x 3 nathan www-data 4096 Feb  9 04:45 silverstripe/
nathan@mcs:~/Web/svn/com.example/trunk/docroot/_assets/locked/styles$ svn st
M       scss/_common.scss
!       generated/print.css
!       generated/ie.css
!       generated/template.css
nathan@mcs:~/Web/svn/com.example/trunk/docroot/_assets/locked/styles$ compass compile
   create generated/ie.css 
   create ../images/common/awards-sbc0e826db3.png
   create ../images/common/pointers-sce372a76ff.png
   create ../images/template/ui-s34fc5bffcc.png
   create ../images/template/social-footer-s262478b9ae.png
   create ../images/homepage/customer-testimonial-logos-s5c7f42616d.png
   create ../images/homepage/customer-testimonial-profiles-sc4569cd9fe.png
   create ../images/homepage/dg-promos-s83c9cfa6cf.png
   create ../images/small-medium-business/why-example/icons-sd3c756449f.png
   create ../images/small-medium-business/smb-common-sf074ea4905.png
   create ../images/global-enterprise/small-icons-s9141263c6c.png
   create ../images/global-enterprise/large-icons-sc8415ce577.png
   create ../images/global-enterprise/services-support-sa393300fa2.png
   create ../images/resources/type-icons-s49e151c49d.png
   create generated/template.css 
   create generated/print.css 
nathanbrauer commented 11 years ago

Any thoughts here?

scottdavis commented 11 years ago

I totally blame @chriseppstein for this. I don't think he took --dry-run into account when he created the clean command.

ncolton commented 10 years ago

This is also an issue with ‘compile’; files are deleted when running a --dry-run flagged compile without any additional commands.