title: protoc-gen-go: unable to determine Go import path for "simple.proto"
body: <p>I have simple proto file with following content.</p>
  <pre><code>syntax=&quot;proto3&quot;;
  
  package main;
  
  message Person {
        string name = 1;
        int32 age = 2; 
  }
  </code></pre>
  <p>I am trying to generate go code for it using protoc. I run:</p>
  <pre><code>protoc --go_out=. simple.proto
  </code></pre>
  <p>I receive following error:</p>
  <pre><code>protoc-gen-go: unable to determine Go import path for &quot;simple.proto&quot;
  
  Please specify either:
          • a &quot;go_package&quot; option in the .proto source file, or
          • a &quot;M&quot; argument on the command line.
  </code></pre>
  <p><code>main.go</code>, <code>go.mod</code> and <code>simple.proto</code> is in the same folder. Both <code>protoc</code> and <code>protoc-gen-go</code> are defined in PATH enviroement.</p>