Skip to content
This repository has been archived by the owner on Aug 9, 2018. It is now read-only.

Commit

Permalink
Regenerate protocol buffer code
Browse files Browse the repository at this point in the history
  • Loading branch information
mildred committed Feb 24, 2016
1 parent e4f6be6 commit 7d05368
Show file tree
Hide file tree
Showing 5 changed files with 793 additions and 548 deletions.
11 changes: 11 additions & 0 deletions coding/coding_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package coding
import (
"bytes"
"io/ioutil"
"os"
"testing"

links "github.com/ipfs/go-ipld/links"
Expand Down Expand Up @@ -81,6 +82,16 @@ func TestCodecsEncodeDecode(t *testing.T) {
t.Log(string(testfile))
t.Log(outData)
t.Log(string(outData))
f, err := os.Create(fname + ".error")
if err != nil {
t.Error(err)
} else {
defer f.Close()
_, err := f.Write(outData)
if err != nil {
t.Error(err)
}
}
}
}
}
Expand Down
7 changes: 5 additions & 2 deletions coding/pb/Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
PB = $(wildcard *.proto)
GO = $(PB:.proto=.pb.go)

all: $(GO) test.pb
all: $(GO) ipld.pb.go

%.pb.go: %.proto
protoc --gogo_out=. --proto_path=../../../../../../:/usr/local/opt/protobuf/include:. $<
go get github.com/gogo/protobuf/protoc-gen-gogo
go get github.com/gogo/protobuf/protoc-gen-gofast
protoc --gogo_out=. --proto_path=../../../../../:/usr/include:/usr/local/opt/protobuf/include:. $<
patch $@ <$@.patch

clean:
rm -f *.pb.go
Expand Down
Loading

0 comments on commit 7d05368

Please sign in to comment.