A platform for community discussion. Free, open, simple.
FIX: `s3:upload_assets` was uploaded some source maps twice (#30216)
Alan Guo Xiang Tan49e835395966
diff --git a/lib/tasks/s3.rake b/lib/tasks/s3.rakeindex 39ec32b3364..d01bd09ee71 100644--- a/lib/tasks/s3.rake+++ b/lib/tasks/s3.rake@@ -61,7 +61,7 @@ def assetsRails.application.config.assets.manifest,)- results = []+ results = Set.newmanifest.assets.each do |_, path|fullpath = (Rails.root + "public/assets/#{path}").to_s@@ -69,6 +69,7 @@ def assets# Ignore files we can't find the mime type of, like yarn.lockcontent_type = MiniMime.lookup_by_filename(fullpath)&.content_typecontent_type ||= "application/json" if fullpath.end_with?(".map")+if content_typeasset_path = "assets/#{path}"results << [fullpath, asset_path, content_type]@@ -87,7 +88,7 @@ def assetsendend- results+ results.to_aenddef asset_paths