<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body><section><h1>URL scheme</h1><figure class="short list"><ul><li><code class="URI" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">http:</anchor></code></li><li><code class="URI" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">https:</anchor></code></li><li><code class="URI" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">git:</anchor></code></li><li><code class="URI" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">ssh:</anchor></code></li><li><code class="URI" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">git+ssh:</anchor></code></li><li><code class="URI" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">hg:</anchor></code></li><li><code class="URI" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">vcs:</anchor></code></li><li><code class="URI" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">svn:</anchor></code></li><li><code class="URI" xml:lang="en">bzr:</code></li><li><code class="URI" xml:lang="en">repo:</code></li><li><code class="URI" xml:lang="en">file:</code></li><li><code class="URI" xml:lang="en">cvs:</code></li><li><code class="URI" xml:lang="en">osc:</code></li><li><code class="URI" xml:lang="en">p4:</code></li></ul></figure></section><section><h1>素片識別子</h1><figure class="quote"><figcaption><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="1" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[1]</anchor-end> <cite xml:lang="en">pip install — pip 6.0.8 documentation</cite>
(<time>2015-02-05 11:45:03 +09:00</time> 版)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://pip.pypa.io/en/latest/reference/pip_install.html">https://pip.pypa.io/en/latest/reference/pip_install.html</anchor-external></figcaption><blockquote><p>Passing branch names, a commit hash or a tag name is possible like so:</p><p><strong>[</strong>-e<strong>]</strong> git://git.myproject.org/MyProject.git@master#egg=MyProject</p><p><strong>[</strong>-e<strong>]</strong> git://git.myproject.org/MyProject.git@v1.0#egg=MyProject</p><p><strong>[</strong>-e<strong>]</strong> git://git.myproject.org/MyProject.git@da39a3ee5e6b4b0d3255bfef95601890afd80709#egg=MyProject</p></blockquote></figure><figure class="quote"><figcaption><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="2" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[2]</anchor-end> <cite xml:lang="en">SPDX Specification 2.1 (web version) | Software Package Data Exchange (SPDX)</cite>
( (<time>2016-12-20 16:40:30 +09:00</time>))
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://spdx.org/spdx-specification-21-web-version#h.49x2ik5">https://spdx.org/spdx-specification-21-web-version#h.49x2ik5</anchor-external></figcaption><blockquote><p>For version-controlled files, the VCS location syntax is similar to a URL and has the:</p><p>&lt;vcs_tool&gt;+&lt;transport&gt;://&lt;host_name&gt;<strong>[</strong>/&lt;path_to_repository&gt;<strong>]</strong><strong>[</strong>@&lt;revision_tag_or_branch&gt;<strong>]</strong><strong>[</strong>#&lt;sub_path&gt;<strong>]</strong></p><p> </p><p>This VCS location compact notation (inspired and mostly adopted from https://pip.pypa.io/en/latest/reference/pip_install.html#vcs-support as of 20150220)  supports referencing locations in version control systems such as Git, Mercurial, Subversion and Bazaar, and specifies the type of VCS tool using url prefixes: “git+”, “hg+”, “bzr+”, “svn+” and specific transport schemes such as SSH or HTTPS.</p><p> </p><p>Specifying sub-paths,  branch names, a commit hash, a revision   or a tag name is recommended, and supported using the &quot;@&quot;delimiter for commits and the &quot;#&quot; delimiter for sub-paths.</p><p> </p><p>Using user names and password in the host_name is not supported and should be considered as an error. User access control to URLs or VCS repositories must be handled outside of an SPDX document.</p><p> </p><p>In VCS location compact notations, the trailing slashes in &lt;host_name&gt;, &lt;path_to_repository&gt; are not significant. Leading and trailing slashes in &lt;sub_path&gt; are not significant.</p></blockquote></figure><figure class="quote"><figcaption><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="3" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[3]</anchor-end> <cite xml:lang="en">SPDX Specification 2.1 (web version) | Software Package Data Exchange (SPDX)</cite>
( (<time>2016-12-20 16:40:30 +09:00</time>))
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://spdx.org/spdx-specification-21-web-version#h.49x2ik5">https://spdx.org/spdx-specification-21-web-version#h.49x2ik5</anchor-external></figcaption><blockquote><p>To specify a sub-path to a file or directory inside a repository use the &quot;#&quot; delimiter:</p><p> </p><p>PackageDownloadLocation: git://git.myproject.org/MyProject#src/somefile.c</p><p>PackageDownloadLocation: git+https://git.myproject.org/MyProject#src/Class.java</p><p> </p><p>To specify branch names, a commit hash or a tag name, use the &quot;@&quot; delimiter:</p><p> </p><p>PackageDownloadLocation: git://git.myproject.org/MyProject.git@master</p><p>PackageDownloadLocation: git+https://git.myproject.org/MyProject.git@v1.0</p><p>PackageDownloadLocation: git://git.myproject.org/MyProject.git@da39a3ee5e6b4b0d3255bfef95601890afd80709</p></blockquote></figure></section></body></html>