<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Monorepo on Mark Wolfe's Blog</title><link>https://www.wolfe.id.au/tags/monorepo/</link><description>Recent content in Monorepo on Mark Wolfe's Blog</description><generator>Hugo</generator><language>en-AU</language><lastBuildDate>Thu, 28 Dec 2023 08:55:22 +1000</lastBuildDate><atom:link href="https://www.wolfe.id.au/tags/monorepo/index.xml" rel="self" type="application/rss+xml"/><item><title>Using a Monorepo to publish Lean Go Packages with Workspaces</title><link>https://www.wolfe.id.au/2023/12/28/using-a-monorepo-to-publish-lean-go-packages-with-workspaces/</link><pubDate>Thu, 28 Dec 2023 08:55:22 +1000</pubDate><guid>https://www.wolfe.id.au/2023/12/28/using-a-monorepo-to-publish-lean-go-packages-with-workspaces/</guid><description>&lt;p&gt;As a developer who works with Go in my day-to-day development, I constantly struggle with third party packages or tools which bring in a lot of dependencies. This is especially true when you&amp;rsquo;re trying to keep your project dependencies up to date, while &lt;a class="blog-link" href="https://github.com/dependabot" rel="noopener noreferrer"&gt;dependabot&lt;/a&gt;
, and other security software, is screaming about vulnerabilities in dependencies of dependencies.&lt;/p&gt;
&lt;p&gt;This is especially a problem with two common packages I use:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Any HTTP adaptor package, which ships with integrations for multiple server packages, such as Gin, Echo, and others.&lt;/li&gt;
&lt;li&gt;Any package which uses docker to test with containers.&lt;/li&gt;
&lt;li&gt;Projects which include examples with their own dependencies.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;To break this cycle in my own projects, and packages I publish privately in work projects, I have adopted the use of &lt;a class="blog-link" href="https://go.dev/ref/mod#workspaces" rel="noopener noreferrer"&gt;Go workspaces&lt;/a&gt;
, which allows me to create a monorepo broken up into multiple packages, and then publish one or more of these packages.&lt;/p&gt;</description></item></channel></rss>