#35709: Command collectstatic should relay on checksums instead of modify time
-------------------------------------+-------------------------------------
     Reporter:  Grzegorz Przybylik   |                     Type:
                                     |  Cleanup/optimization
       Status:  new                  |                Component:  Core
                                     |  (Management commands)
      Version:  5.1                  |                 Severity:  Normal
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
 In our project we mostly relay on containerization and packing code
 including their static files into containers. During upgrade we call
 `manage.py collectstatic` inside that container and our static files are
 uploaded to s3 bucket.

 Collectstatic command to make sure if file needs replacement checks
 creation timestamp on destination storage and local file storage. But
 problem is that creation time of static files inside container are set
 during image creation. This causes issues in deploying older images,
 because of their create timestamps mentioned earlier.

 My idea to fix this is to check files checksums (like md5 or sha) and
 using them to compare file identity.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35709>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/01070191934a541b-f5124c2d-78d7-4776-a640-8495e101f355-000000%40eu-central-1.amazonses.com.

Reply via email to