still protobuf memory corruption
This commit is contained in:
parent
09f855910c
commit
f1c2695662
|
@ -16,6 +16,9 @@ add:
|
|||
update:
|
||||
./forgeConfig --update --name 'foo' --gopath 'go.wit.com/apps/foonew'
|
||||
|
||||
corruptMemory:
|
||||
./forgeConfig --update --name 'foo' --gopath 'blah'
|
||||
|
||||
goimports:
|
||||
goimports -w *.go
|
||||
|
||||
|
|
|
@ -52,13 +52,14 @@ func main() {
|
|||
os.Exit(0)
|
||||
}
|
||||
|
||||
testAddRepos(repos)
|
||||
testMemoryCorruption(repos)
|
||||
repos.ConfigSave()
|
||||
}
|
||||
|
||||
func testAddRepos(all *forgepb.Repos) *forgepb.Repos {
|
||||
// this fucks shit up
|
||||
func testMemoryCorruption(all *forgepb.Repos) *forgepb.Repos {
|
||||
new1 := new(forgepb.Repo)
|
||||
new1.Name = "bash"
|
||||
new1.Name = "bash1"
|
||||
new1.Version = "5.2.21"
|
||||
if all.Append(new1) {
|
||||
log.Info("added", new1.Name, "ok")
|
||||
|
@ -67,7 +68,7 @@ func testAddRepos(all *forgepb.Repos) *forgepb.Repos {
|
|||
}
|
||||
|
||||
new1 = new(forgepb.Repo)
|
||||
new1.Name = "zookeeper"
|
||||
new1.Name = "zookeeper1"
|
||||
new1.Debname = "zookeeper-go"
|
||||
if all.Append(new1) {
|
||||
log.Info("added", new1.Name, "ok")
|
||||
|
|
Loading…
Reference in New Issue