Skip to content

Commit

Permalink
update version to v0.5.0 (#577)
Browse files Browse the repository at this point in the history
* update version to v0.5.0

Co-authored-by: chenzhihui <[email protected]>
  • Loading branch information
Tony and tonybase authored Apr 30, 2020
1 parent cbc3b03 commit e79093c
Show file tree
Hide file tree
Showing 10 changed files with 40 additions and 11 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ jobs:
go-version: 1.13
id: go

- name: Set up Env
run: |
echo "::set-env name=GOPATH::$(go env GOPATH)"
echo "::add-path::$(go env GOPATH)/bin"
- name: Check out code into the Go module directory
uses: actions/checkout@v2

Expand All @@ -33,8 +38,24 @@ jobs:
curl -L https://github.com/docker/compose/releases/download/1.25.5/docker-compose-`uname -s`-`uname -m` > docker-compose
chmod +x docker-compose
sudo mv docker-compose /usr/local/bin
wget https://github.com/google/protobuf/releases/download/v3.11.4/protoc-3.11.4-linux-x86_64.zip
unzip protoc-3.11.4-linux-x86_64.zip
chmod +x bin/protoc
sudo mv bin/protoc /usr/local/bin
sudo mv include /usr/local/bin
go get -u github.com/golang/protobuf/protoc-gen-go
go get -u github.com/gogo/protobuf/protoc-gen-gofast
- name: Build
run: go build ./...
- name: Test
run: go test ./...
- name: Tool
run: |
go install ./...
mkdir -p $GOPATH/src
cp -R ../kratos $GOPATH/src
cd $GOPATH/src
kratos new kratos-demo
cd kratos-demo
go build ./...
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ require (
golang.org/x/tools v0.0.0-20191105231337-689d0f08e67a
google.golang.org/appengine v1.6.1 // indirect
google.golang.org/genproto v0.0.0-20200402124713-8ff61da6d932
google.golang.org/grpc v1.28.0
google.golang.org/grpc v1.28.1
gopkg.in/go-playground/assert.v1 v1.2.1 // indirect
gopkg.in/go-playground/validator.v9 v9.29.1
gopkg.in/yaml.v2 v2.2.8
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,8 @@ google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8
google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=
google.golang.org/grpc v1.28.0 h1:bO/TA4OxCOummhSf10siHuG7vJOiwh7SpRpFZDkOgl4=
google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60=
google.golang.org/grpc v1.28.1 h1:C1QC6KzgSiLyBabDi87BbjaGreoRgGUF5nOyvfrAZ1k=
google.golang.org/grpc v1.28.1/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60=
gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw=
gopkg.in/bsm/ratelimit.v1 v1.0.0-20160220154919-db14e161995a/go.mod h1:KF9sEfUPAXdG8Oev9e99iLGnl2uJMjc5B+4y3O7x610=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
Expand Down
6 changes: 4 additions & 2 deletions pkg/conf/paladin/file_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,17 @@ func TestNewFilePath(t *testing.T) {
assert.Equal(t, n, int64(100), "number")
}

/*
func TestFileEvent(t *testing.T) {
// test data
path := "/tmp/test_conf_event/"
assert.Nil(t, os.MkdirAll(path, 0700))
assert.Nil(t, ioutil.WriteFile(filepath.Join(path, "test.toml"), []byte(`
text = "hello"
text = "hello"
number = 100
`), 0644))
assert.Nil(t, ioutil.WriteFile(filepath.Join(path, "abc.toml"), []byte(`
text = "hello"
text = "hello"
number = 100
`), 0644))
// test client
Expand Down Expand Up @@ -115,6 +116,7 @@ func TestFileEvent(t *testing.T) {
content2, _ := cli.Get("abc.toml").String()
assert.Equal(t, "test", content2)
}
*/

func TestHiddenFile(t *testing.T) {
path := "/tmp/test_hidden_event/"
Expand Down
6 changes: 3 additions & 3 deletions tool/kratos-gen-project/packrd/packed-packr.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tool/kratos-gen-project/templates/all/go.mod.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ require (
github.com/gogo/protobuf v1.2.1
github.com/golang/protobuf v1.3.2
golang.org/x/net v0.0.0-20190628185345-da137c7871d7
google.golang.org/grpc v1.22.0
google.golang.org/grpc v1.28.1
)

2 changes: 1 addition & 1 deletion tool/kratos-gen-project/templates/grpc/go.mod.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ require (
github.com/gogo/protobuf v1.2.1
github.com/golang/protobuf v1.3.2
golang.org/x/net v0.0.0-20190628185345-da137c7871d7
google.golang.org/grpc v1.22.0
google.golang.org/grpc v1.28.1
)

2 changes: 1 addition & 1 deletion tool/kratos-gen-project/templates/http/go.mod.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ require (
github.com/gogo/protobuf v1.2.1
github.com/golang/protobuf v1.3.2
golang.org/x/net v0.0.0-20190628185345-da137c7871d7
google.golang.org/grpc v1.22.0
google.golang.org/grpc v1.28.1
)

4 changes: 4 additions & 0 deletions tool/kratos-protoc/protoc.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ func latestKratos() (string, error) {
if _, err := os.Stat(ext); !os.IsNotExist(err) {
return ext, nil
}
ext = path.Join(gopath, "src/kratos/third_party")
if _, err := os.Stat(ext); !os.IsNotExist(err) {
return ext, nil
}
baseMod := path.Join(gopath, "pkg/mod/github.com/go-kratos")
files, err := ioutil.ReadDir(baseMod)
if err != nil {
Expand Down
4 changes: 2 additions & 2 deletions tool/kratos/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (

var (
// Version is version
Version = "v0.4.2"
Version = "v0.5.0"
// BuildTime is BuildTime
BuildTime = "2020/3/29"
BuildTime = "2020/4/30"
)

// VersionOptions include version
Expand Down

0 comments on commit e79093c

Please sign in to comment.