This change no longer ignores errors returned when closing the GCS writer, as the library docs state:
Since writes happen asynchronously, Write may return a nil error even though the write failed (or will fail). Always use the error returned from Writer.Close to determine if the upload was successful.
Sometimes writing the version file to GCS can silently fail and the file is empty after a
put
. The error only surfaces on subsequentget
orcheck
(see https://github.com/concourse/semver-resource/issues/125).This change no longer ignores errors returned when closing the GCS writer, as the library docs state: