concourse / semver-resource

automated semantic version bumping
Apache License 2.0
97 stars 105 forks source link

Empty version file in GCS #125

Open robwhitby opened 3 years ago

robwhitby commented 3 years ago

We use semver-resource with GCS and occasionally get these errors:

error bumping version: parsing number in bucket: Version string empty
error checking for new versions: parsing number in bucket: Version string empty

There is no error from the last put which bumped the version, but the file in GCS is indeed empty.

To fix it we have to manually write the latest version with gsutil.

# careful not to add newline
echo -n '1.2.3' > /tmp/v
gsutil cp /tmp/v gs://some-path