hugo/deploy
David Jones d0657a436e
deploy: Set an MD5 attribute and use that if eTag not available
During Hugo deploy when a remote MD5 is invalid (e.g due to multipart eTag) Hugo reads the entire remote file and calculates the MD5 again which can be slow.

This commit updates the file upload so that it will also store an MD5 hash in the cloud provider's attributes. e.g in AWS this looks like x-amz-meta-md5chksum: 26fe392386a8123bf8956a16e08cb841.
2022-04-05 10:42:54 +02:00
..
cloudfront.go all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
deploy.go deploy: Set an MD5 attribute and use that if eTag not available 2022-04-05 10:42:54 +02:00
deploy_azure.go all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
deploy_test.go all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
deployConfig.go all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
deployConfig_test.go Remove debug statement 2021-12-11 22:59:36 +01:00
google.go all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00