microgen icon indicating copy to clipboard operation
microgen copied to clipboard

Doesn't work with go modules [go v.1.11.2]

Open Terminator637 opened this issue 7 years ago • 4 comments

In a project that uses go modules, I run the microgen command and get the following:

@microgen 0.9.1
fatal: not in GOPATH

Terminator637 avatar Dec 02 '18 17:12 Terminator637

yes, I know about this problem with go modules. Microgen uses GOPATH to find import path to package with interface. I want to release v1 in near future which will support go modules.

vetcher avatar Dec 03 '18 08:12 vetcher

yes, I know about this problem with go modules. Microgen uses GOPATH to find import path to package with interface. I want to release v1 in near future which will support go modules.

Thank you! Will wait for new release!

Terminator637 avatar Dec 03 '18 08:12 Terminator637

I know is 2020, but any news on this?

nicocesar avatar Sep 08 '20 22:09 nicocesar

Hi. For this years I realise, that core idea of microgen (generate everything from interface) is wrong. And, what's more important, I do not have access rights to this repo, because I left devimteam 2 years ago.

But! We have benefits of open source: you may fork it and continue. I do not recommend use master branch, because its really out of date. You may try branch v22 (it's that branch with refactoring, that should work with modules; do not look at readme) https://github.com/devimteam/microgen/tree/v22. As I remember, 2 years ago it works fine.

Also, you may look at https://github.com/hexdigest/gowrap

vetcher avatar Sep 09 '20 11:09 vetcher