<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: tdev</title>
    <description>The latest articles on Forem by tdev (@t78497492).</description>
    <link>https://forem.com/t78497492</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F323898%2Fd3a05e23-5b8a-4560-8178-e99c3d64fe43.png</url>
      <title>Forem: tdev</title>
      <link>https://forem.com/t78497492</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/t78497492"/>
    <language>en</language>
    <item>
      <title>The error I encountered when setting up writefreely</title>
      <dc:creator>tdev</dc:creator>
      <pubDate>Mon, 06 Nov 2023 12:33:28 +0000</pubDate>
      <link>https://forem.com/t78497492/the-error-i-encountered-when-setting-up-writefreely-4jhg</link>
      <guid>https://forem.com/t78497492/the-error-i-encountered-when-setting-up-writefreely-4jhg</guid>
      <description>&lt;h2&gt;
  
  
  Purpose of This Article
&lt;/h2&gt;

&lt;p&gt;The setup process for WriteFreely is documented &lt;a href="https://writefreely.org/docs/main/developer/setup"&gt;here&lt;/a&gt;, but following the steps resulted in an error. This article provides a solution for resolving the error.&lt;/p&gt;

&lt;h2&gt;
  
  
  Error Description
&lt;/h2&gt;

&lt;p&gt;When running the &lt;code&gt;go get&lt;/code&gt; command according to the Quick start guide, the following error occurs:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;go get -d github.com/writefreely/writefreely/cmd/writefreely

go: go.mod file not found in the current directory or any parent directory. 'go get' is no longer supported outside a module. To build and install a command, use 'go install' with a version, like 'go install example.com/cmd@latest' For more information, see https://golang.org/doc/go-get-install-deprecation or run 'go help get' or 'go help install'.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Cause of the Error
&lt;/h2&gt;

&lt;p&gt;When using a relatively new version of Go, dependency management is performed using Go Modules instead of the &lt;code&gt;$GOPATH&lt;/code&gt; way. You can choose between &lt;code&gt;$GOPATH&lt;/code&gt; or Go Modules with the &lt;code&gt;GO111MODULE&lt;/code&gt; setting. However, the behavior can be quite complex and varies depending on the Go version, as described in the following article:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://maelvls.dev/go111module-everywhere/"&gt;https://maelvls.dev/go111module-everywhere/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;With newer versions of Go, Go Modules have become mandatory, and &lt;code&gt;go get&lt;/code&gt; can no longer be used without Go Modules.&lt;/p&gt;

&lt;h2&gt;
  
  
  Solution
&lt;/h2&gt;

&lt;p&gt;You can set &lt;code&gt;GO111MODULE&lt;/code&gt; to &lt;code&gt;auto&lt;/code&gt; as follows to make it behave like the old &lt;code&gt;$GOPATH&lt;/code&gt;-based approach:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;go env -w GO111MODULE=auto
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After running the above command, you can execute &lt;code&gt;go get -d github.com/writefreely/writefreely/cmd/writefreely&lt;/code&gt;, and it will download the source code to &lt;code&gt;$GOPATH/src&lt;/code&gt;. If your &lt;code&gt;$GOPATH&lt;/code&gt; is not set, you can navigate to &lt;code&gt;$HOME/go/src/github.com/writefreely/writefreely&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Other Notes
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;In my environment, &lt;code&gt;echo $GOPATH&lt;/code&gt;  does not show a value. However,  &lt;code&gt;go env GOPATH&lt;/code&gt; shows a value. It seems that in recent versions of Go, there is no need to explicitly set &lt;code&gt;$GOPATH&lt;/code&gt; in files like &lt;code&gt;.zshrc&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://stackoverflow.com/questions/21001387/how-do-i-set-the-gopath-environment-variable-on-ubuntu-what-file-must-i-edit/53026674#53026674"&gt;https://stackoverflow.com/questions/21001387/how-do-i-set-the-gopath-environment-variable-on-ubuntu-what-file-must-i-edit/53026674#53026674&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;When using the &lt;code&gt;$GOPATH&lt;/code&gt; approach with go get, the source code is downloaded to &lt;code&gt;$GOPATH/src/&lt;/code&gt;. But when using Go Modules with go get, it is downloaded to &lt;code&gt;$GOPATH/pkg/mod&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://stackoverflow.com/questions/66284870/go-get-not-downloading-to-src-folder"&gt;https://stackoverflow.com/questions/66284870/go-get-not-downloading-to-src-folder&lt;/a&gt;&lt;/p&gt;

</description>
      <category>fediverse</category>
      <category>go</category>
    </item>
    <item>
      <title>7 dev songs you should listen</title>
      <dc:creator>tdev</dc:creator>
      <pubDate>Sun, 18 Apr 2021 05:46:30 +0000</pubDate>
      <link>https://forem.com/t78497492/7-dev-songs-you-should-listen-3n41</link>
      <guid>https://forem.com/t78497492/7-dev-songs-you-should-listen-3n41</guid>
      <description>&lt;p&gt;I have found some interesting songs related to programming. Here, I'd like to share 7 of my favorite songs.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.youtube.com/watch?v=YYvOGPMLVDo"&gt;MVC Song&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/YYvOGPMLVDo"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.youtube.com/watch?v=H6_TYSWTPzg"&gt;The Longest Path&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/H6_TYSWTPzg"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.youtube.com/watch?v=0vPt7GI-2kc"&gt;MongoDB Database Skills&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/0vPt7GI-2kc"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.youtube.com/watch?v=SYRlTISvjww"&gt;Uptime Funk&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/SYRlTISvjww"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.youtube.com/watch?v=b-Cr0EWwaTk"&gt;Java Life&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/b-Cr0EWwaTk"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.youtube.com/watch?v=iYLxw6OsZug"&gt;Imagine DevOps&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/iYLxw6OsZug"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.youtube.com/watch?v=Wm2h0cbvsw8"&gt;We're Gonna Build a Framework&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/Wm2h0cbvsw8"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;Happy Coding.&lt;/p&gt;

</description>
      <category>watercooler</category>
    </item>
    <item>
      <title>I made a website which helps you find interesting open source projects</title>
      <dc:creator>tdev</dc:creator>
      <pubDate>Fri, 03 Apr 2020 15:01:02 +0000</pubDate>
      <link>https://forem.com/t78497492/i-made-a-website-which-helps-you-find-interesting-open-source-projects-245j</link>
      <guid>https://forem.com/t78497492/i-made-a-website-which-helps-you-find-interesting-open-source-projects-245j</guid>
      <description>&lt;p&gt;&lt;strong&gt;Project page&lt;/strong&gt;: &lt;a href="https://opensourceappfinder.coders.party"&gt;https://opensourceappfinder.coders.party&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Source code&lt;/strong&gt;: &lt;a href="https://github.com/dhst1211/opensourceappfinder"&gt;https://github.com/dhst1211/opensourceappfinder&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This is a project that helps you find open source projects you want to use and contribute to next time.&lt;br&gt;
I made this website because I found that there are lots of open source apps that can be used in everyday life. Also, I heard that the best way to start contributing to open source is by choosing the projects you actually use, so by discovering apps you want to use, you can increase the chance to contribute to open source.&lt;/p&gt;

&lt;p&gt;You can filter projects by language and category, which means you can search the project that uses your favorite language and sparks your interests(perfect match!).&lt;br&gt;
This website only includes apps and excludes libraries because I thought it is easier to use and read codebase. And you can explore the libraries the project uses later on.&lt;/p&gt;

&lt;p&gt;There are apparent bugs but I decided to make this public now because my focus has shifted to different things.&lt;br&gt;
I have always felt that it is difficult to find an open source that is right for you to contribute, so I hope this helps your first open source contribution!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Tech stack&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;React&lt;/li&gt;
&lt;li&gt;Redux&lt;/li&gt;
&lt;li&gt;node &lt;/li&gt;
&lt;li&gt;Express&lt;/li&gt;
&lt;li&gt;Material-ui&lt;/li&gt;
&lt;li&gt;postgres&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Update(April 4)&lt;/strong&gt;&lt;br&gt;
Thanks for your feedback! At first, I was wondering if I should make this project public or throw it away. So I didn’t expect that many people visit this post and project.&lt;br&gt;
I want to see your half-done/abandoned project next time😀&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>webdev</category>
      <category>react</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Place to see other dev's side project</title>
      <dc:creator>tdev</dc:creator>
      <pubDate>Sat, 25 Jan 2020 15:11:22 +0000</pubDate>
      <link>https://forem.com/t78497492/place-to-see-other-dev-s-side-project-d93</link>
      <guid>https://forem.com/t78497492/place-to-see-other-dev-s-side-project-d93</guid>
      <description>&lt;p&gt;I like to see other developers' work to get inspired. Currently, I am checking these websites.&lt;/p&gt;

&lt;p&gt;showdev in dev.to(here)&lt;br&gt;
&lt;a href="https://www.reddit.com/r/SideProject/"&gt;r/sideproject&lt;/a&gt;&lt;br&gt;
i-made-this in &lt;a href="https://discordapp.com/channels/102860784329052160/312761588778139658"&gt;reactflux&lt;/a&gt;&lt;br&gt;
&lt;a href="https://news.ycombinator.com/show"&gt;showHN&lt;/a&gt;&lt;br&gt;
&lt;a href="https://www.indiehackers.com/"&gt;indie hacker&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you know any other websites, please share it!&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>watercooler</category>
    </item>
  </channel>
</rss>
