diff options
| author | Feng Ye <fengye87.me@gmail.com> | 2019-07-30 17:46:33 +0800 |
|---|---|---|
| committer | Feng Ye <fengye87.me@gmail.com> | 2019-07-30 17:46:33 +0800 |
| commit | 7df5f9a70fe63ba7fa3b25d665ede4542d9dc8ea (patch) | |
| tree | 06423751359fcccd4d83735ac98cfab122294128 | |
| parent | 8afd8d35b3230f6fc286967e8aa9641bd8c1460c (diff) | |
| download | seaweedfs-7df5f9a70fe63ba7fa3b25d665ede4542d9dc8ea.tar.xz seaweedfs-7df5f9a70fe63ba7fa3b25d665ede4542d9dc8ea.zip | |
Move travis-ci pipeline to go mod
| -rw-r--r-- | .travis.yml | 4 | ||||
| -rw-r--r-- | weed/s3api/filer_multipart.go | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml index b42847e8e..3261d33db 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,6 @@ sudo: false language: go go: - - 1.10.x - 1.11.x - 1.12.x # - tip @@ -12,10 +11,9 @@ before_install: install: - export CGO_ENABLED="0" - go env - - go get -u ./weed/... script: - - go test ./weed/... + - env GO111MODULE=on go test ./weed/... before_deploy: - make release diff --git a/weed/s3api/filer_multipart.go b/weed/s3api/filer_multipart.go index c8fe05645..44416a514 100644 --- a/weed/s3api/filer_multipart.go +++ b/weed/s3api/filer_multipart.go @@ -23,7 +23,7 @@ type InitiateMultipartUploadResult struct { } func (s3a *S3ApiServer) createMultipartUpload(ctx context.Context, input *s3.CreateMultipartUploadInput) (output *InitiateMultipartUploadResult, code ErrorCode) { - uploadId, _ := uuid.NewV4() + uploadId := uuid.NewV4() uploadIdString := uploadId.String() if err := s3a.mkdir(ctx, s3a.genUploadsFolder(*input.Bucket), uploadIdString, func(entry *filer_pb.Entry) { |
