hashOf returns the sha256 hex digest, matching goreleaser's manifest format.
(body []byte)
| 58 | |
| 59 | // hashOf returns the sha256 hex digest, matching goreleaser's manifest format. |
| 60 | func hashOf(body []byte) string { |
| 61 | h := sha256.New() |
| 62 | h.Write(body) |
| 63 | return hex.EncodeToString(h.Sum(nil)) |
| 64 | } |
| 65 | |
| 66 | // platformAsset is the asset name Apply expects for the current runtime, |
| 67 | // via the same assetName helper production uses. |
no test coverage detected