{"push_id":835775486,"size":1,"distinct_size":1,"ref":"refs/heads/add-write-compression","head":"ea861d42c7e559720a98ca62b99c0346e3867e0b","before":"f9bafae1bbee4859c14ef80824f4b6913ab55404","commits":[{"sha":"ea861d42c7e559720a98ca62b99c0346e3867e0b","author":{"email":"470bc578162732ac7f9d387d34c4af4ca6e1b6f7@apcera.com","name":"Ken Robertson"},"message":"write: Added --compress option to gzip compress the resulting image\n\nThis adds a --compress option to the write command which will gzip compress the\nimage when writing.\n\nCurrently, it only does gzip. The ACI spec references gzip, bzip2, and xz.\nGo has a built in gzip writer, but only a bzip2 reader. XZ is possible, however\nit requires linking to libxz and then requiring it at runtime.\n\nThis changes also reorders some of the file closing within the write function.\nIt moves the closes from being done in line to being defered. The gzip.Writer\nexposes a Close function, and want to ensure the Close options are done in\nthe proper order, and done across all three. Since the compression is optional,\nit is easier with just defering the close.\n\nThe ACI may be removed on a failure, however it is fine to remove the file\nbefore closing, it will clean up properly.","distinct":true,"url":"https://api.github.com/repos/apcera/acbuild/commits/ea861d42c7e559720a98ca62b99c0346e3867e0b"}]}