We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When one or both of the option go_package lines in the below 2 files are enabled, the import order changes randomly between:
option go_package
_ "." // or "github.com/someuser/api_a" _ "github.com/mwitkow/go-proto-validators"
and vice versa.
syntax = "proto3"; package a; // option go_package = "github.com/someuser/api_a"; message Thing { string id = 1; }
syntax = "proto3"; import "a.proto"; package b; // option go_package = "github.com/someuser/api_b"; import "github.com/mwitkow/go-proto-validators/validator.proto"; message SomethingContainingThing { a.Thing thing = 1 [(validator.field) = {msg_exists : true}]; }
default: b.validator.pb.go b.pb.go %.validator.pb.go: %.proto a.proto @protoc -I. -Ivendor -Ivendor/github.com/protocolbuffers/protobuf/src --govalidators_out=paths=source_relative:. "$<" %.pb.go: %.proto a.proto @protoc -I. -Ivendor -Ivendor/github.com/protocolbuffers/protobuf/src --go_out=paths=source_relative:. "$<" .PHONY: clean clean: @rm -f *.pb.go
F="b.validator.pb.go" while true ; do rm -f "$F" make "$F" md5="$(md5sum "$F" | awk '{print $1}')" echo -e "$(date)\t$md5" mv "$F "$md5-$F" done
(If F is changed to b.pb.go, no flakiness is observed in the output.)
F
b.pb.go
In the vendor dir we have:
vendor
tree -d vendor vendor/ └── github.com ├── google │ └── protobuf │ └── src │ └── google │ └── protobuf │ ├── compiler │ │ ├── cpp │ │ └── ruby │ └── util │ └── internal │ └── testdata └── mwitkow └── go-proto-validators ├── examples └── test
Versions:
f425b9f
v3.7.0+incompatible
go.mod
The text was updated successfully, but these errors were encountered:
Fix here gogo/protobuf#700
Sorry, something went wrong.
No branches or pull requests
When one or both of the
option go_package
lines in the below 2 files are enabled, the import order changes randomly between:and vice versa.
File: a.proto
File: b.proto
Makefile
Script to highlight flake
(If
F
is changed tob.pb.go
, no flakiness is observed in the output.)In the
vendor
dir we have:Versions:
f425b9f
(12/Feb/2019, orv3.7.0+incompatible
according togo.mod
)The text was updated successfully, but these errors were encountered: