<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Modules on Gopher Coding</title><link>https://gophercoding.com/tags/modules/</link><description>Recent content in Modules on Gopher Coding</description><generator>Hugo</generator><language>en-gb</language><lastBuildDate>Tue, 31 Oct 2023 20:20:05 +0000</lastBuildDate><atom:link href="https://gophercoding.com/tags/modules/index.xml" rel="self" type="application/rss+xml"/><item><title>Should I Commit the go.sum File to the Repo?</title><link>https://gophercoding.com/should-i-commit-my-go-sum/</link><pubDate>Tue, 31 Oct 2023 18:00:00 +0000</pubDate><guid>https://gophercoding.com/should-i-commit-my-go-sum/</guid><description>&lt;p>&lt;strong>TL;DR&lt;/strong> Yes, probably.&lt;/p>
&lt;p>Using &lt;a href="https://go.dev/blog/using-go-modules">Go Modules&lt;/a>, you will have both a &lt;code>go.mod&lt;/code> and a &lt;code>go.sum&lt;/code> file within your coding repository. A question often asked is whether you should commit the sum portion of the file as it&amp;rsquo;s &lt;strong>automatically generated&lt;/strong>. These files help manage the dependencies of your project and they differ by the &lt;code>go.mod&lt;/code> file being human-friendly, listing the libraries used within the project, and the &lt;code>go.sum&lt;/code> listing the very &lt;strong>specific vendor versions&lt;/strong> of each dependency (not just your direct ones, but also the whole tree).&lt;/p></description></item><item><title>Update All Go Packages in Your Project</title><link>https://gophercoding.com/update-all-packages-dependencies/</link><pubDate>Sat, 18 Jun 2022 14:00:00 +0000</pubDate><guid>https://gophercoding.com/update-all-packages-dependencies/</guid><description>&lt;p>If you want to update all dependencies and &lt;strong>packages&lt;/strong> within your project then the simplest way is to use the &lt;code>go get&lt;/code> command which handles it all for us. Go modules (&lt;strong>go mod&lt;/strong>) will handle most of the versioning of these packages, so deploying and sharing the project will keep the same package versions.&lt;/p></description></item></channel></rss>