TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Monogo – Evolve your go workspace to a real monorepo

35 pointsby elmazout9 months ago
Hi there,<p>I&#x27;ve been working sporadically over the last six months on a go monorepo tool (0 config it just use go workspace and go convention). It’s basically like TurboRepo but without the task runner. The tool builds a dependency graph between packages, allowing you to do things similar to what you can do in TurboRepo, like &quot;only test the packages and the packages that depend on them, compared to the main branch,&quot; or &quot;only install dependencies for Package A and its dependencies,&quot; etc. I use native go tool to get dependencies and create dependency graph between the package.Nothing crazy but I feel it could be useful.

2 comments

TheDong9 months ago
It&#x27;s surprising the go tooling doesn&#x27;t have a more native way to do something like this already. Upstream issue: <a href="https:&#x2F;&#x2F;github.com&#x2F;golang&#x2F;go&#x2F;issues&#x2F;50745">https:&#x2F;&#x2F;github.com&#x2F;golang&#x2F;go&#x2F;issues&#x2F;50745</a><p>Like, go already has test caching (so &quot;only test stuff that changed&quot; shouldn&#x27;t be necessary, that should just happen), and code formatting and such is already quite fast...<p>Overall, I feel like having another tool which parses my go source code is going to be slower than writing a Makefile to wrap:<p><pre><code> go list -f &#x27;{{.Dir}}&#x27; -m | xargs -L1 go test .&#x2F;... </code></pre> which is all this tool doing really.<p>Also, hilariously, the repo isn&#x27;t go fmt&#x27;d [0], despite being a tool to go fmt your repo. That&#x27;s really funny, but I don&#x27;t think the go community is ready for that level of humor yet, maybe one day.<p>[0]: <a href="https:&#x2F;&#x2F;github.com&#x2F;nicolasgere&#x2F;monogo&#x2F;blob&#x2F;2fb0b4985893e3397df86bdee0d4ea728db506ab&#x2F;lib&#x2F;analyser&#x2F;parse.go#L78">https:&#x2F;&#x2F;github.com&#x2F;nicolasgere&#x2F;monogo&#x2F;blob&#x2F;2fb0b4985893e3397...</a>
评论 #41358876 未加载
评论 #41355319 未加载
评论 #41355249 未加载
hahn-kev9 months ago
If this is not related to Mongo Db why is the name so similar?
评论 #41339403 未加载