Skip to content

Issue with domain names in FindModelDefinition #129

@bettse

Description

@bettse

I don't have a full example, but I ran into a situation where I was getting an error

2017/05/26 18:14:11 Can not find definition of x model. Name looks like absolute, but model not found in github/com/.../models package

And I noticed the 'github/com' where it should be 'github.com', and I think this might be a result of the split on periods here:

modelNameParts := strings.Split(modelName, ".")
and then its later rejoined with slashes here:
absolutePackageName := strings.Join(modelNameParts[:len(modelNameParts)-1], "/")

Let me know if you need and example to demonstrate and reproduce

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions