You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey mate, great tool seems very helpful!
Just wondering if there's a way to use modver with monorepos? I'm having some issues.
We have a repo with a number of different modules in subfolders.
running modver -git ../.git HEAD~1 HEAD in the folder module1 gives Error in comparing: error(s) loading package ./...: -: pattern ./...: directory prefix . does not contain main module or its selected dependencies
running modver -git .git HEAD~1 HEAD in the root folder gives Error in comparing: error(s) loading package ./...: -: pattern ./...: directory prefix . does not contain main module or its selected dependencies
It appears we can't run modver unless the module is declared in the top level of the repo, is this correct? Is there any workaround, and if not, could it be possible to add support for this?
Thank you!
The text was updated successfully, but these errors were encountered:
Hey, thanks for the kind words, and sorry for the delay.
You're right, that feature is needed in Modver. It may be some weeks before I can get to adding it.
In the meantime, please allow me to recommend my newer tool, Taggo, which incorporates Modver logic, and which can handle multiple Go modules per repository.
Hey mate, had a look into taggo, but encountered some issues. I think this is because it requires each package be defined as main? Ended up going with go-apidiff.
Thanks though!
Hey mate, great tool seems very helpful!
Just wondering if there's a way to use modver with monorepos? I'm having some issues.
We have a repo with a number of different modules in subfolders.
Structure looks something like:
running
modver -git ../.git HEAD~1 HEAD
in the folder module1 givesError in comparing: error(s) loading package ./...: -: pattern ./...: directory prefix . does not contain main module or its selected dependencies
running
modver -git .git HEAD~1 HEAD
in the root folder givesError in comparing: error(s) loading package ./...: -: pattern ./...: directory prefix . does not contain main module or its selected dependencies
It appears we can't run modver unless the module is declared in the top level of the repo, is this correct? Is there any workaround, and if not, could it be possible to add support for this?
Thank you!
The text was updated successfully, but these errors were encountered: