Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with domain names in FindModelDefinition #129

Open
bettse opened this issue May 26, 2017 · 0 comments
Open

Issue with domain names in FindModelDefinition #129

bettse opened this issue May 26, 2017 · 0 comments

Comments

@bettse
Copy link

bettse commented May 26, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant