Skip to content

Commit

Permalink
fix: update config
Browse files Browse the repository at this point in the history
  • Loading branch information
kooksee committed Jun 11, 2022
1 parent a5dc4fb commit 082898f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func Main() {

var data = ""
var base = fmt.Sprintf("protoc -I %s -I %s", cfg.Vendor, pwd)
for i := range cfg.Root {
for i := range cfg.Includes {
base += fmt.Sprintf(" -I %s", cfg.Root[i])
}
var retagOut = ""
Expand Down
1 change: 1 addition & 0 deletions cmd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ type Cfg struct {
Vendor string `yaml:"vendor,omitempty"`
Checksum string `yaml:"checksum,omitempty" hash:"-"`
Root []string `yaml:"root,omitempty" hash:"-"`
Includes []string `yaml:"includes,omitempty" hash:"-"`
Depends []depend `yaml:"deps,omitempty"`
Plugins []plugin `yaml:"plugins,omitempty" hash:"-"`
changed bool
Expand Down
4 changes: 3 additions & 1 deletion protobuf.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
version: v1
vendor: .proto
checksum: 0f7c5397b378b6024614c8edb8971e0c09a7b69f
checksum: 85da3b3146c7021097b973c086b0a12dae70c023
root:
- proto
includes:
- proto
deps:
- name: google/protobuf
url: /usr/local/include/google/protobuf
Expand Down

0 comments on commit 082898f

Please sign in to comment.