Releases: izumin5210/grapi
Releases · izumin5210/grapi
v0.5.0
v0.4.2
v0.4.2
v0.4.1
v0.4.1
v0.4.0 - Support Go Modules
- Support Go Modules #83 #176 #179
- Fix default project layout #181
- Support
(*grapiserver.Engine).ServerContext(context.Context)
#183
How to migrate
- Bump grapi version
- If you use dep, update
Gopkg.toml
[[constraint]] name = "github.com/izumin5210/grapi" - version = "0.3.0" + version = "0.4.0"
- and run
dep ensure
- If you use dep, update
- Update gex and
tools.go
-
go get -u github.com/izumin5210/gex/cmd/gex gex --regen
-
- Initialize Go Modules
-
go mod init go mod tidy
-
- Update
grapi.toml
-
package = "yourcompany.yourappname" [grapi] server_dir = "./app/server" [protoc] protos_dir = "./api/protos" out_dir = "./api" import_dirs = [ "./api/protos", - "./vendor/github.com/grpc-ecosystem/grpc-gateway", - "./vendor/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis", + '{{ module "github.com/grpc-ecosystem/grpc-gateway" }}', + '{{ module "github.com/grpc-ecosystem/grpc-gateway" }}/third_party/googleapis', ] [[protoc.plugins]] name = "go" args = { plugins = "grpc", paths = "source_relative" } [[protoc.plugins]] name = "grpc-gateway" args = { logtostderr = true, paths = "source_relative" } [[protoc.plugins]] name = "swagger" args = { logtostderr = true }
-
- Drop dep
-
rm Gopkg.*
-
v0.3.2
v0.3.1
v0.3.1
v0.3.0
⚠️ This version has some breaking changes
✨ New features ✨
- Make generator commands (
grapi g ...
) pluggable 🔌- Reference implementation: grapi-gen-command, grapi-gen-type
- Use gex internaly
- Manage executable tools with
tools.go
- Manage executable tools with
- Many bugs are fixed 🐛🐛🐛
canary
v0.2.2
v0.2.2
v0.2.1
v0.2.1