I have the following step in a cloudbuild.yaml file. It replaces the development config.js file with a production config file.
The production config file has fewer lines than the development one. When Berglas is overwriting the destination file, it appears to overwrite each character from the new file, until it runs out of characters.
This is leaving my updated config file corrupted because it is not syntactically correct.
I have the following step in a
cloudbuild.yaml
file. It replaces the developmentconfig.js
file with a production config file.The production config file has fewer lines than the development one. When Berglas is overwriting the destination file, it appears to overwrite each character from the new file, until it runs out of characters.
This is leaving my updated config file corrupted because it is not syntactically correct.
Expectation My expectation is that the whole file would be overwritten.
Current Workaround I have added multiple empty lines to the top of the production config file.