Skip to content

Commit

Permalink
Set up a go.mod file and include the .go.pb files generated from the …
Browse files Browse the repository at this point in the history
…protobufs.

With these changes Localtoast can now also be built using "go build localtoast.go"

PiperOrigin-RevId: 419591074
Change-Id: I2718e59e46ea0f510f4f119139bd1724a8ec3c4a
  • Loading branch information
erikvarga authored and copybara-github committed Jan 4, 2022
1 parent 7d28914 commit eeb504a
Show file tree
Hide file tree
Showing 8 changed files with 3,993 additions and 0 deletions.
12 changes: 12 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module github.com/google/localtoast

go 1.17

require (
bitbucket.org/creachadair/stringset v0.0.10
github.com/go-sql-driver/mysql v1.6.0
github.com/google/go-cmp v0.5.6
google.golang.org/protobuf v1.27.1
)

require golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
15 changes: 15 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
bitbucket.org/creachadair/stringset v0.0.10 h1:DZjkR57sJGMycZNVVbl+26bK7vW1kwLQE6qWICWLteI=
bitbucket.org/creachadair/stringset v0.0.10/go.mod h1:6G0fsnHFxynEdWpihfZf44lnBPpTW6nkrcxITVTBHus=
github.com/BurntSushi/toml v0.4.1/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ=
github.com/go-sql-driver/mysql v1.6.0 h1:BCTh4TKNUYmOmMUcQ3IipzF5prigylS7XXjEkfCHuOE=
github.com/go-sql-driver/mysql v1.6.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg=
github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ=
github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE=
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
google.golang.org/protobuf v1.27.1 h1:SnqbnDw1V7RiZcXPx5MEeqPv2s79L9i7BJUlG/+RurQ=
google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
5 changes: 5 additions & 0 deletions scannerlib/proto/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ import "scannerlib/proto/compliance.proto";

option go_package = "github.com/google/localtoast/scannerlib/proto/api_go_proto";

// After making changes to this proto, the corresponding go_proto in
// api_go_proto needs to be re-created using "bazel build api_go_proto".
// TODO(b/206023198): Make the generation of the go_protos part of the build
// process.

message ScanConfig {
// The maximum amount of time the scan and individual benchmark checks can run
// for.
Expand Down
Loading

0 comments on commit eeb504a

Please sign in to comment.