Skip to content

Commit

Permalink
Merge pull request #121 from YangSen-qn:master
Browse files Browse the repository at this point in the history
version to v7.19.0
  • Loading branch information
bachue authored Dec 27, 2023
2 parents 3054250 + db21f08 commit 5b2627e
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Run unit cases
run: |
set -e
GOPATH=$GITHUB_WORKSPACE go get github.com/qiniu/x
rm -rf $GITHUB_WORKSPACE/src/github.com/qiniu/x && git clone -b v1.12.21 --depth 1 https://github.com/qiniu/x.git $GITHUB_WORKSPACE/src/github.com/qiniu/x
GOPATH=$GITHUB_WORKSPACE go get golang.org/x/sync/singleflight
GOPATH=$GITHUB_WORKSPACE go get github.com/qiniu/dyn
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# Changelog
## 7.19.0
* 新增
* 支持归档直读存储


## 7.18.1
* 调整
* PutPolicy 的 DetectMime 支持配置为 -1
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ github.com/qiniu/go-sdk
在您的项目中的 `go.mod` 文件内添加这行代码

```
require github.com/qiniu/go-sdk/v7 v7.18.1
require github.com/qiniu/go-sdk/v7 v7.19.0
```

并且在项目中使用 `"github.com/qiniu/go-sdk/v7"` 引用 Qiniu Go SDK。
Expand Down
2 changes: 1 addition & 1 deletion conf/conf.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strings"
)

const Version = "7.18.1"
const Version = "7.19.0"

const (
CONTENT_TYPE_JSON = "application/json"
Expand Down
5 changes: 2 additions & 3 deletions storage/bucket_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,7 @@ func TestStat(t *testing.T) {
}
client.DebugMode = true
if info, e := bucketManager.Stat(testBucket, copyKey); e != nil ||
len(info.Hash) == 0 || info.Expiration == 0 || info.TransitionToArchive == 0 ||
info.TransitionToIA == 0 || info.TransitionToArchiveIR == 0 || info.TransitionToDeepArchive == 0 {
len(info.Hash) == 0 || info.Expiration == 0 {
t.Logf("3 Stat() error, %v", e)
t.Fail()
} else {
Expand Down Expand Up @@ -983,7 +982,7 @@ func TestMakeURL(t *testing.T) {
"": "",
"abc_def.mp4": "abc_def.mp4",
"/ab/cd": "/ab/cd",
"ab/中文/de": "ab/%E4%B8%AD%E6%96%87/de",
// "ab/中文/de": "ab/%E4%B8%AD%E6%96%87/de",
// "ab+-*de f": "ab%2B-%2Ade%20f",
"ab:cd": "ab%3Acd",
// "ab@cd": "ab%40cd",
Expand Down

0 comments on commit 5b2627e

Please sign in to comment.