wawandco / oxpecker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ox generate Ox missing libraries

paganotoni opened this issue · comments

When generating ox file you end up with missing libraries:

[info] Using cmd/ox/main.go 

cmd/ox/main.go:12:2: no required module provides package github.com/wawandco/oxpecker/cli; to add it:
        go get github.com/wawandco/oxpecker/cli
cmd/ox/main.go:13:2: no required module provides package github.com/wawandco/oxpecker/tools/soda; to add it:
        go get github.com/wawandco/oxpecker/tools/soda
[error] exit status 1

We should run go mod tidy or go get to solve these 2.

To solve it I created aftergenerators interface and added go mod tidy as the first aftergenerator.