Skip to content

Commit a0b0cb1

Browse files
authored
update: go-bindata program (#277)
1 parent 418b666 commit a0b0cb1

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

.appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ install:
1010
- cmd: git clone -q --branch=master https://github.com/aliyun/aliyun-openapi-meta.git C:\Users\appveyor\go\src\github.com\aliyun\aliyun-openapi-meta
1111
- cmd: set path=%path%;C:\Users\appveyor\go\bin
1212
- cmd: set VERSION=3.0.39
13-
- cmd: go get -u github.com/jteeuwen/go-bindata/...
13+
- cmd: go get -u github.com/shuLhan/go-bindata/...
1414
- cmd: go-bindata -o resource/metas.go -pkg resource -prefix ../aliyun-openapi-meta ../aliyun-openapi-meta/...
1515
- cmd: go build -ldflags "-X 'github.com/aliyun/aliyun-cli/cli.Version=%VERSION%'" -o C:\Users\appveyor\go\bin\aliyun.exe main/main.go
1616

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
### Master
44

5+
- update: go-bindata program
6+
from `https://github.com/jteeuwen/go-bindata` to `https://github.com/shuLhan/go-bindata`
57
- add: environment variables
68
`ALIBABACLOUD_ACCESS_KEY_ID`, `ALICLOUD_ACCESS_KEY_ID`, `ALIBABACLOUD_ACCESS_KEY_SECRET`, `ALICLOUD_ACCESS_KEY_SECRET`
79
- fix: cancel HTML character escaping

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ publish: build build_mac build_linux build_windows gen_version
66

77
deps:
88
-go get -u github.com/aliyun/aliyun-openapi-meta
9-
go get -u github.com/jteeuwen/go-bindata/...
9+
go get -u github.com/shuLhan/go-bindata/...
1010

1111
testdeps: deps
1212

1313
metas: deps
14-
go-bindata -o resource/metas.go -pkg resource -prefix ../aliyun-openapi-meta ../aliyun-openapi-meta/...
14+
go-bindata -o resource/metas.go -pkg resource ../aliyun-openapi-meta/...
1515

1616
clean:
1717
rm -f resource/metas.go

resource/reader.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ func NewReader() *Reader {
2121
}
2222

2323
func (r *Reader) ReadFrom(path string) ([]byte, error) {
24-
return Asset(path)
24+
return Asset("../aliyun-openapi-meta/" + path)
2525
}

0 commit comments

Comments
 (0)