aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2024-06-08 14:12:14 -0700
committerXe Iaso <me@xeiaso.net>2024-06-08 14:12:14 -0700
commit5b06f7323a40e20f0587a9481c45233fa294b5ef (patch)
tree1616f2b1e11c33fc289df236b62a5b7316c0119a /cmd
parentbb8a5a886c993fc943277e56b4c9065c1f3a82b2 (diff)
downloadx-5b06f7323a40e20f0587a9481c45233fa294b5ef.tar.xz
x-5b06f7323a40e20f0587a9481c45233fa294b5ef.zip
cmd/future-sight: fix hash calculation
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/future-sight/main.go2
-rw-r--r--cmd/future-sight/manifest.yaml2
2 files changed, 3 insertions, 1 deletions
diff --git a/cmd/future-sight/main.go b/cmd/future-sight/main.go
index 4948324..3aa62de 100644
--- a/cmd/future-sight/main.go
+++ b/cmd/future-sight/main.go
@@ -191,6 +191,8 @@ func (s *Server) UploadVersion(w http.ResponseWriter, r *http.Request) {
return
}
+ fout.Seek(0, 0)
+
hash, err := hashFileSha256(fout)
if err != nil {
slog.Error("failed to hash file", "err", err)
diff --git a/cmd/future-sight/manifest.yaml b/cmd/future-sight/manifest.yaml
index 3260bd5..e866d0e 100644
--- a/cmd/future-sight/manifest.yaml
+++ b/cmd/future-sight/manifest.yaml
@@ -223,4 +223,4 @@ spec:
service:
name: future-sight
port:
- name: http \ No newline at end of file
+ name: web \ No newline at end of file