title: Makefile execution: permission denied
body: <p>I've got a quite strange problem with golang and Makefile (on Fedora 33).
  My Makefile contains:</p>
  <pre><code>run:
    go run main.go
  </code></pre>
  <p>which should only print &quot;Hello&quot; to the console. When I run <code>make run</code> I get this error:</p>
  <pre><code>go run main.go
  make: go: Permission denied
  make: *** [Makefile:5: run] Error 127
  </code></pre>
  <p>However, if I change my Makefile to</p>
  <pre><code>  run:
      /usr/bin/go run main.go
  </code></pre>
  <p>it works just fine!</p>
  <p><strong>INFO</strong></p>
  <p>Outputs of:</p>
  <pre><code>$ which go
  /usr/bin/go
  
  $ go version
  go version go1.15.5 linux/amd64
  
  $ uname -a 
  Linux localhost.localdomain 5.9.10-200.fc33.x86_64 #1 SMP Mon Nov 23 18:12:50 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
  </code></pre>
  <p>Can someone help me with this? If you need more info please tell me!</p>
  <p>Thank you!</p>
  <p><strong>EDIT</strong></p>
  <p>Console</p>
  <pre><code>$ echo ${PATH}
  /usr/lib64/ccache:/usr/local/bin:/usr/bin:/bin:/home/olena/bin:/usr/local/sbin:/usr/sbin:/var/lib/snapd/snap/bin
  </code></pre>
  <p>Output of <code>make</code></p>
  <pre><code>echo /usr/lib64/ccache:/usr/local/bin:/usr/bin:/bin:/home/olena/bin:/usr/local/sbin:/usr/sbin:/var/lib/snapd/snap/bin
  /usr/lib64/ccache:/usr/local/bin:/usr/bin:/bin:/home/olena/bin:/usr/local/sbin:/usr/sbin:/var/lib/snapd/snap/bin
  go run main.go
  make: go: Permission denied
  make: *** [Makefile:6: run] Error 127
  </code></pre>
  <p>In <code>/usr/bin</code></p>
  <pre><code>$ ll | grep go
  lrwxrwxrwx.  1 root root 20 Nov 14 09:32 go -&gt; /etc/alternatives/go
  </code></pre>
  <p>In <code>/etc/alternatives</code></p>
  <pre><code>$ ll | grep go
  lrwxrwxrwx. 1 root root 22 Nov 29 15:16 go -&gt; /usr/lib/golang/bin/go
  </code></pre>