Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>After looking at <a href="http://code.google.com/p/go/issues/detail?id=3099" rel="nofollow">this issue</a> (and attached <a href="http://codereview.appspot.com/5660051/" rel="nofollow">code review</a>), and <a href="http://code.google.com/p/go/source/detail?r=0af5bcfdb4c1" rel="nofollow">this thread</a>:</p> <ul> <li>make sure your "import-prefix hg repo-root" follows the right format <ul> <li>The import-alias-prefix must be a prefix or exact match of the package being fetched with "<code>go get</code>".</li> <li>The full-repo-root must be a full URL root to a repository containing a scheme and <em>not</em> containing a "<code>.vcs</code>" qualifier.</li> <li>The <code>vcs</code> is one of "<code>git</code>", "<code>hg</code>", "<code>svn</code>", etc.</li> </ul></li> <li>make sure the page fetch from <code>https://&lt;import&gt;?go-get=1</code> is indeed you <code>index.html</code> page (not <code>index.htm</code> or any other <code>DirectoryIndex</code> directive, if this is setup in an <code>httpd.conf</code> file for instance)</li> </ul> <blockquote> <p>If the import-alias-prefix is not an exact match for the import, another HTTP fetch is performed, at the declared root (which does <em>not</em> need to be the domain's root).</p> <p>For example, assuming that "<code>camlistore.org/pkg/blobref</code>" declares in its HTML head:</p> <pre><code>&lt;meta name="go-import" content="camlistore.org git https://camlistore.org/r/p/camlistore" /&gt; </code></pre> <p>... then:</p> <pre><code>$ go get camlistore.org/pkg/blobref </code></pre> <p>... looks at the following URLs:</p> <pre><code>https://camlistore.org/pkg/blobref?go-get=1 http://camlistore.org/pkg/blobref?go-get=1 https://camlistore.org/?go-get=1 http://camlistore.org/?go-get=1 </code></pre> <p>Ultimately it finds, at the root (<code>camlistore.org/</code>), the same <code>go-import</code>:</p> <pre><code>&lt;meta name="go-import" content="camlistore.org git https://camlistore.org/r/p/camlistore" /&gt; </code></pre> <p>... and proceeds to trust it, checking out git <code>//camlistore.org/r/p/camlistore</code> at the import path of "<code>camlistore.org</code>" on disk.</p> </blockquote>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload