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

repository does not exist #142

Closed magick93 closed 1 year ago

magick93 commented 1 year ago

Hi

I'm using v0.6.8-beta.7 - installed using brew.

When I run hof create github.com/hofstadter-io/hofmod-cli I get

repository does not exist
verdverm commented 1 year ago

hmmm, I get a different error on linux

setting up...
loading remote creator
fetching creator dependencies
init'n generator
Errors while loading Cue entrypoints:  []
Creator.Create: field not allowed:
    ./creators/creator.cue:8:10
    ./creators/creator.cue:23:3
    ./creators/creator.cue:24:3
    ./creators/creator.cue:24:20
    ./cue.mod/pkg/github.com/hofstadter-io/hof/schema/create/create.cue:4:19
    ./cue.mod/pkg/github.com/hofstadter-io/hof/schema/gen/generator.cue:78:2
    ./hof.cue:8:12

Did you install on linux like your other issue, or is this Mac specific?

Things I will do:

This is mostly an issue with hofmod-cli, I will link the issue there

verdverm commented 1 year ago

@magick93 can you try running this now?

hof create github.com/hofstadter-io/hofmod-cli@v0.8.2
verdverm commented 1 year ago

hmm, I may need to get a new beta out to fix this...

magick93 commented 1 year ago

Hi @verdverm

I tried hof create github.com/hofstadter-io/hofmod-cli@v0.8.2 and it looks better. This is the output:

setting up...
loading remote creator
fetching creator dependencies
init'n generator
Creating a new Go Cli
? What is your CLI named myhof
? Git repository github.com/user/repo
? Tell us a bit about it... learning to use hof
? Enable GoReleaser tooling Yes
? Enable self updating Yes
? Enable telemetry No
warning: creators/statics/ not found for , if you do not intend to use this directory, set 'Statics: []'
warning: creators/static/ not found for , if you do not intend to use this directory, set 'Statics: []'
warning: creators/partials/ not found for , if you do not intend to use this directory, set 'Partials: []'
Creator.Create.Args: field not allowed (and 1 more errors)
While loading generators

And there are no files created in the folder.

magick93 commented 1 year ago

Did you install on linux like your other issue, or is this Mac specific?

I'm Linux all the way.

verdverm commented 1 year ago

Yup, I think that error is CLI -> HOF -> CLI in cue deps, which shouldn't be happening.

I cannot figure out why it still thinks the Args is there, but apparently it should be and it is the hof/schema/create that should be updated. I recall what it is for now, need to document it

magick93 commented 1 year ago

Thanks for looking into this.

Will there be a new release with the fix or do I not need to upgrade?

verdverm commented 1 year ago

@magick93 I released a new beta that should fix your two issues. Please reopen if you face issues.

Thanks for the reports!

hof create github.com/hofstadter-io/hofmod-cli@v0.8.3

# if you have git issues, try
rm -rf $HOME/.cache/hof/src