From a998f1e41814b50995c9377c91e271bf8b38b173 Mon Sep 17 00:00:00 2001 From: daved Date: Thu, 31 Aug 2023 20:02:06 -0700 Subject: [PATCH] Replace open file with create in s3dep script --- scripts/ci/s3-deployer/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ci/s3-deployer/main.go b/scripts/ci/s3-deployer/main.go index 8ea1190ca4..4841b9e0fc 100644 --- a/scripts/ci/s3-deployer/main.go +++ b/scripts/ci/s3-deployer/main.go @@ -115,7 +115,7 @@ func getFileList() []string { func prepareFile(p string) *s3.PutObjectInput { fmt.Printf("Uploading %s\n", p) - file, err := os.Open(p) + file, err := os.Create(p) if err != nil { fmt.Println("Failed to open file", file, err) os.Exit(1)