Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to setup in local step by step guide #541

Open
PazhaniMani opened this issue Oct 7, 2023 · 2 comments
Open

How to setup in local step by step guide #541

PazhaniMani opened this issue Oct 7, 2023 · 2 comments

Comments

@PazhaniMani
Copy link

Hi Team,
I am learning to new go language, so please help this project, I already setup this project but error like this:
pcode@Pcodes-MacBook-Air GoBackend % go run .

github.com/oasisprotocol/nexus/api/v1/types

api/v1/types/util.go:16:9: undefined: ConsensusEventType
api/v1/types/util.go:18:7: undefined: ConsensusEventTypeStakingTransfer
api/v1/types/util.go:19:3: undefined: ConsensusEventTypeStakingBurn
api/v1/types/util.go:20:3: undefined: ConsensusEventTypeStakingEscrowAdd
api/v1/types/util.go:21:3: undefined: ConsensusEventTypeStakingEscrowTake
api/v1/types/util.go:22:3: undefined: ConsensusEventTypeStakingEscrowDebondingStart
api/v1/types/util.go:23:3: undefined: ConsensusEventTypeStakingEscrowReclaim
api/v1/types/util.go:42:9: undefined: Layer
api/v1/types/util.go:51:9: undefined: Runtime
api/v1/types/util.go:61:10: undefined: GetLayerStatsActiveAccountsParams
api/v1/types/util.go:23:3: too many errors
pcode@Pcodes-MacBook-Air GoBackend %

How to resolve this issue plz help me.........

@pro-wh
Copy link
Collaborator

pro-wh commented Oct 9, 2023

https://github.com/oasisprotocol/nexus#local-development see instructions here. you'll need to run make nexus and other commands instead of go run .

@PazhaniMani
Copy link
Author

pcode@Pcodes-MacBook-Air GoBackend % make nexus
fatal: No names found, cannot describe anything.
bash: oapi-codegen: command not found
ERROR: Installed oapi-codegen is not v1.12.x. See Makefile.
go: updates to go.mod needed; to update it:
go mod tidy
cannot locate oapi-codegen templates dir
make: *** [codegen-go] Error 1
pcode@Pcodes-MacBook-Air GoBackend %

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants