aristanetworks / openmgmt

Documentation and examples for using open network management tools such as OpenConfig
https://aristanetworks.github.io/openmgmt/
Apache License 2.0
70 stars 32 forks source link

ygot demo: no such file or directory #66

Closed ksator closed 2 years ago

ksator commented 3 years ago
~/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?

burnyd commented 3 years ago

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.

github-actions[bot] commented 2 years ago

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

github-actions[bot] commented 2 years ago

This issue has been closed due to prolonged inactivity.