Commit 5efcbba9 authored by Andrew Gerrand's avatar Andrew Gerrand

misc/makerelease: send file size when uploading

Change-Id: I1a1ed1e23067268a2bac08fc4c99c594fb723837
Reviewed-on: https://go-review.googlesource.com/3050Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 68b78b8a
......@@ -736,6 +736,7 @@ func (b *Build) Upload(version string, filename string) error {
OS: b.OS,
Arch: b.Arch,
Checksum: sum,
Size: len(file),
Kind: kind,
})
if err != nil {
......@@ -760,6 +761,7 @@ type File struct {
Arch string
Version string
Checksum string `datastore:",noindex"`
Size int `datastore:",noindex"`
Kind string // "archive", "installer", "source"
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment