mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 05:56:15 +02:00
docs: Use the explicit ref for fetchGit with a tag
With the merge of #2582, the syntax "tags/1.9" for refs does not work anymore. However, the new syntax "refs/tags/1.9" seems to support annotated tags, such as "refs/tags/2.0". Closes #2385.
This commit is contained in:
parent
92ede15dd9
commit
ae244af242
1 changed files with 1 additions and 4 deletions
|
@ -499,11 +499,8 @@ stdenv.mkDerivation { … }
|
||||||
<title>Fetching a tag</title>
|
<title>Fetching a tag</title>
|
||||||
<programlisting>builtins.fetchGit {
|
<programlisting>builtins.fetchGit {
|
||||||
url = "https://github.com/nixos/nix.git";
|
url = "https://github.com/nixos/nix.git";
|
||||||
ref = "tags/1.9";
|
ref = "refs/tags/1.9";
|
||||||
}</programlisting>
|
}</programlisting>
|
||||||
<note><para>Due to a bug (<link
|
|
||||||
xlink:href="https://github.com/NixOS/nix/issues/2385">#2385</link>),
|
|
||||||
only non-annotated tags can be fetched.</para></note>
|
|
||||||
</example>
|
</example>
|
||||||
|
|
||||||
<example>
|
<example>
|
||||||
|
|
Loading…
Reference in a new issue