-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vendor.tar.gz archives should be idempotent between service runs #40
Comments
Thanks for surfacing this issue. I had noticed that
|
One way to handle that is to set the files times in the archive to the same as the
|
I created #55 to do this, so it works for at least |
We are observing that tarballs generated by
obs-service-go_modules
are not idempotent, i.e. the archives are not bit-identical after execution even if there are no changes in the file contents, and therefore their checksums differ. For us, having idempotent archives is useful as a re-execution of the source service with identical file contents would avoid the file being stored again in our repositories.For example, executing this service twice gives different results even if the file contents are the same:
In this example we were using the
tarsum
script (you can find it here) to calculate the checksum of each individual files inside the archive. And as you can see, it is identical for both cases so the actual contents of the archive is the same.Note that in other plugins such as
obs-service-node_modules
, this does not seem to happen since a re-execution generates bit-identical archives.The text was updated successfully, but these errors were encountered: