hofstadter-io / hof

Framework that joins data models, schemas, code generation, and a task engine. Language and technology agnostic.
https://docs.hofstadter.io
Apache License 2.0
523 stars 37 forks source link

import failed: cannot find package "github.com/hofstadter-io/hof/schema/gen"` #186

Open shortwavedave opened 1 year ago

shortwavedave commented 1 year ago

What version of hof are you using (hof version)?

$ hof version
hof - the high code framework

Version:     vLocal
Commit:      Dirty

BuildDate:   Unknown
GoVersion:   go1.20.3
OS / Arch:   linux amd64
ConfigDir:   /home/david/.config/hof
CacheDir:    /home/david/.cache/hof

Author:      Hofstadter, Inc
Homepage:    https://hofstadter.io
GitHub:      https://github.com/hofstadter-io/hof

What did you do?

cd hof/docs/code
make

What happened?

 import failed: cannot find package "github.com/hofstadter-io/hof/schema/gen"`

What did you expect to see?

This is for the first example https://docs.hofstadter.io/first-example/

verdverm commented 1 year ago

Is this on tip?

Did you do the docs setup in https://docs.hofstadter.io/contributing/docs/ ?

Not sure if this is needed, and if it is, maybe it shouldn't be.

It is working for me locally, you might need to go through the hof setup too, or at least run hof mod link in the repo root

You probably want to build the hof on the lastest _dev too, you should see a commit hash in the hof version

$ hof version
hof - the high code framework

Version:     Local
Commit:      21768756cd5ec3f4214342e7f161bc7c735e6b99

BuildDate:   2023-04-16T05:06:24Z
GoVersion:   go1.19.5
CueVersion:  0.5.0
OS / Arch:   linux amd64
ConfigDir:   /home/tony/.config/hof
CacheDir:    /home/tony/.cache/hof

Author:      Hofstadter, Inc
Homepage:    https://hofstadter.io
GitHub:      https://github.com/hofstadter-io/hof
shortwavedave commented 1 year ago

I'll dig in more and get back to you