From 1dd3f19ee381d3a3554828a37282fd75ba3073ee Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Thu, 18 Jun 2020 17:18:44 +0800 Subject: Use google/uuid to instead satori/go.uuid (#11943) Co-authored-by: Lauris BH --- models/upload.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'models/upload.go') diff --git a/models/upload.go b/models/upload.go index c3719368f3..21c73a43f7 100644 --- a/models/upload.go +++ b/models/upload.go @@ -14,7 +14,7 @@ import ( "code.gitea.io/gitea/modules/setting" - gouuid "github.com/satori/go.uuid" + gouuid "github.com/google/uuid" "github.com/unknwon/com" ) @@ -46,7 +46,7 @@ func (upload *Upload) LocalPath() string { // NewUpload creates a new upload object. func NewUpload(name string, buf []byte, file multipart.File) (_ *Upload, err error) { upload := &Upload{ - UUID: gouuid.NewV4().String(), + UUID: gouuid.New().String(), Name: name, } -- cgit v1.2.3