aristanetworks/openmgmt

ygot demo: no such file or directory

ksator opened this issue · 3 comments

~/openmgmt/src/ygot$ go run $GOPATH/src/github.com/openconfig/ygot/generator/generator.go -path=yang -output_file=pkg/oc.go -package_name=oc -generate_fakeroot -fakeroot_name=device -compress_paths=true  yang/openconfig-system.yang
stat /src/github.com/openconfig/ygot/generator/generator.go: no such file or directory

I dont have ygot:

~/openmgmt/src/ygot$ ls $GOPATH/src/github.com/openconfig/
gnmi  gnoi

I had to add this

git clone https://github.com/openconfig/ygot.git $GOPATH/src/github.com/openconfig/ygot

to fix it

@burnyd should we update the example with this instruction?

Okay to close? Just reference this in the $GOPATH properly. Depending on when a use would go get the go module for ygot. If they are using src or pkg depending on how they have $GOMOD.

This issue has been marked stale given 180 days of inactivity. It will be automatically closed in 14 days if there are no updates.

This issue has been closed due to prolonged inactivity.