Граф коммитов

661 Коммитов

Автор SHA1 Сообщение Дата
Tye McQueen af2b4d4a3d Add paths=source_relative option to restore placement of output files. 2019-10-13 15:56:03 -07:00
Tye McQueen 845d5da1e2 Allow customization of client CLI output. 2019-10-13 15:56:03 -07:00
Zaq? Wiedmann 8837e6034d use gogo's jsonpb
Changes in https://github.com/metaverse/truss/pull/227 brought in jsonpb, but only occured to me after merge that they used the `golang/protobuf` package, but we switched to `gogo/protobuf` back in 249f172d85, so these changes are just getting everything on the same page. That said, I have no idea what the implications of not merging this are.
2019-10-13 15:51:19 -07:00
Zaq? Wiedmann 71bbfecaab Remove testing on tip in favor of testing only stable releases 2019-10-13 15:51:18 -07:00
Zaq? Wiedmann e4384012f2 update to latest gogo/protobuf, only test with modules enabled 2019-10-13 15:51:18 -07:00
Zaq? Wiedmann e46dabfd9a update vendor GO111MODULE=on go mod vendor 2019-10-13 15:43:07 -07:00
Leland Batey ceef91d71c Fix mismatched protobuf service param location 2019-10-13 15:43:07 -07:00
Paul Nicholls e80a1cd319 Set AllowUnknownFields in jsonpb unmarshaller to prevent unwanted errors
This addresses a regression introduced by the migration to jsonpb.
2019-10-13 15:43:07 -07:00
Paul Nicholls a2130ecb9d Use jsonpb to (un)marshall messages to/from JSON
The stdlib encoding/json package isn't able to (un)marshal some advanced protobuf features such as `oneof` fields, so jsonpb should be used instead
2019-10-13 15:43:07 -07:00
Tye McQueen 5028228e97 One last 'metaverse' was in go.mod. 2019-06-12 11:33:35 -07:00
Tye McQueen 5344a0b2d7 If error unmarshalling CLI arg, show data as quoted string, not %v. 2019-06-09 10:37:35 -07:00
Tye McQueen 470bad9c1c If error unmarshalling a CLI arg, report data type not internal var name. 2019-06-09 10:36:32 -07:00
Tye McQueen c84e831266 Separate unmarshalling of CLI args to a customizable hook. 2019-06-09 10:31:14 -07:00
Tye McQueen 5bb7059218 Allow "encoding/json" to be imported even if they stop using it. 2019-06-09 10:12:53 -07:00
Tye McQueen 450d51e0b1 Add any missing funcs to user's hooks.go (for when user upgrades truss). 2019-06-04 17:03:00 -07:00
Tye McQueen a2d63d46bd If prior hooks.go is missing a func, append default version of it. 2019-06-04 16:56:43 -07:00
Tye McQueen 9e86b749a5 Parse prior hooks.go, if present (prep for more changes). 2019-06-04 16:52:15 -07:00
Tye McQueen 5b1d662d5a Allow NewHook() to return an error (for future changes). 2019-06-04 16:38:41 -07:00
Tye McQueen fac370737d Split up hooks.go template to prepare for more seemless truss upgrades. 2019-06-04 16:19:30 -07:00
Tye McQueen 03f52dd907 Do not send request body over HTTP(S) for GET requests. 2019-06-04 15:14:37 -07:00
Tye McQueen acddeb0bb5 Cosmetic changes. 2019-06-04 15:10:13 -07:00
Tye McQueen 4921890577 Make default output JSON. 2019-06-04 12:50:44 -07:00
Tye McQueen c65c3dc74d Allow customization of client CLI output. 2019-06-04 12:50:44 -07:00
Tye McQueen 6de84fadfd Don't require metaverse/truss versions of things in this fork. 2019-05-28 15:21:11 -07:00
Zaq? Wiedmann 957ddce6f8
Merge pull request #269 from Unity-Technologies/sort-cli-flags
Sort CLI flags returned by AllFlags() so generated code is stable.
2019-05-14 23:57:51 -07:00
Tye McQueen fedd0a11a5 Sort CLI flags returned by AllFlags() so generated code is stable. 2019-05-13 16:09:42 -07:00
Zaq? Wiedmann 574fb16d86
Merge pull request #267 from metaverse/gogoapi
bundle gogo proto files so truss services can leverage those extensions
2019-04-11 17:42:59 -07:00
Zaq? Wiedmann 8f352eb50f bundle gogo proto files so truss services can leverage those extensions 2019-04-11 16:55:44 -07:00
Zaq? Wiedmann feec04999c
Merge pull request #266 from CodeLingoBot/rewrite
Fix function comments based on best practices from Effective Go
2019-03-16 10:27:47 -07:00
CodeLingo Bot 3e081148db Fix function comments based on best practices from Effective Go
Signed-off-by: CodeLingo Bot <bot@codelingo.io>
2019-03-15 13:24:27 +13:00
Zaq? Wiedmann 12f6c10595
Merge pull request #263 from metaverse/gomod
Update truss deps to be managed with modules
2019-01-24 14:28:40 -08:00
Zaq? Wiedmann 809597afa7
Merge pull request #265 from kainoaseto/fix/example
Fix example echo.proto import
2019-01-24 14:26:45 -08:00
kainoaseto a34fe64e43 Fix old truss reference in example proto file 2019-01-24 11:40:13 -08:00
Kainoa Seto d746697ca5 Update go-bindata ref and add support for modules (#264)
* Replace go-bindata unmainted version and allow go module support for go-bindata

* Updated travis pipeline to do module builds also

* Still need to pull other modules

* Leaving go get dependencies as is
2019-01-24 09:51:06 -08:00
Zaq? Wiedmann ef149f95e0 Update truss deps to be managed with modules 2019-01-16 21:56:52 -08:00
Zaq? Wiedmann 2d37b9a9c7
Metaverse merge (#262)
* migrate to metaverse/truss

* migrate lingering tuneinc references

* remove newcontext hack now that we are in go1.11

* use gogo protobuf

* support go1.11 modules
2019-01-16 16:47:07 -08:00
Zaq? Wiedmann 7dc4d5d85c
Merge pull request #259 from MatthewHartstonge/master
remove protoc-gen-truss-protocast from windows install script.
2018-05-28 15:12:59 -07:00
Matthew Hartstonge dba3766505 remove protoc-gen-truss-protocast from windows install script. 2018-05-28 17:03:43 +12:00
Zaq? Wiedmann ed77dd88c1
Merge pull request #257 from adamryman/remove-gendoc
Fix #256; update dependencies and resolve related conflicts
2018-05-26 18:50:57 -07:00
Adam Ryman ecb079e6e8 Fix failing builds
- Update svcdef to ignore `XXX_` structure fields (@zaq)

- Update dependencies to latest versions
    - Switch from govendor to dep

- Remove documentation generation through protoc-gen-truss-protocast
    - Remove protoc-gen-truss-protocast
    - Leave note in Gendoc readme

- Fix test by switching to reflect (@zaq)
2018-05-26 18:19:21 -07:00
Zaq? Wiedmann 6ba4ad0cc1
Merge pull request #255 from rdcx/master
example: update migrated repo reference
2018-05-19 14:58:23 -07:00
Ross d121474ea7
example: update migrated repo reference 2018-05-19 22:25:57 +01:00
Zaq? Wiedmann d38df3bfbf
Merge pull request #254 from zaquestion/migrate_tuneinc
(repo migration) migrate from TuneLab -> tuneinc
2018-04-21 22:12:28 -07:00
Zaq? Wiedmann d7fc7dab88 (repo migration) migrate from TuneLab -> tuneinc 2018-04-21 22:02:06 -07:00
Zaq? Wiedmann f2ecb2cef7
Add migration notice to readme (#253)
* Add migration notice to readme

* clarify language
2018-03-30 11:06:11 -07:00
Adam Ryman 09499faafb Update http server to put "request-url" and "transport" in context. (#252)
Tune specific change.
2018-03-15 15:12:08 -07:00
Adam Ryman a5e1364f7a
Update travis to test golang 1.9.x 1.10.x and tip. (#251) 2018-03-11 12:31:32 -07:00
Zaq? Wiedmann f7b10266ec
Merge pull request #250 from MatthewHartstonge/master
Bugfix: Fixes path generation when calling the `truss-protocast_out` plugin.
2018-02-12 12:23:38 -08:00
Matthew Hartstonge 0b477a75e8 Fix for calling truss-protocast_out failing with protoc 3.5+ on windows. 2018-02-12 21:45:50 +13:00
JohnF42 013f049375 fix for repeated enums; test for repeated enums (#249) 2018-01-16 10:58:39 -08:00