Skip to content

You must call hexya module new from a project directory #128

@felipechang

Description

@felipechang

Hi,

I'm getting the following error "You must call hexya module new from a project directory" when running the "hexya module new openacademy" from the tutorial. Windows 10, Go 1.15.6

Issue is in cmd/module.go:78
c := exec.Command("go", "list", "-f", "'{{ .Name }}")

Fixing the .Name like this works for me
c := exec.Command("go", "list", "-f", "'{{.Name}}'")

Which is equivalent to this
go list -f '{{.Name}}'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions