diff options
author | Julien Tanguy <julien.tanguy@jhome.fr> | 2019-09-11T12·18+0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2019-10-09T14·25+0200 |
commit | ceddbc921f01da45af7c78833cc0355bdfe3b189 (patch) | |
tree | 7a54c0bc35b3c755f703e70fdca2f87732c27325 /doc/manual/expressions/builtins.xml | |
parent | 62d1c60fb36b57432bfb7cd7c9086d8c4450484c (diff) |
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. (cherry picked from commit ae244af242ca3621e5a3b9196f27d9fcbf297266)
Diffstat (limited to 'doc/manual/expressions/builtins.xml')
-rw-r--r-- | doc/manual/expressions/builtins.xml | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/doc/manual/expressions/builtins.xml b/doc/manual/expressions/builtins.xml index 6b12636cf0bf..aef1cba747f7 100644 --- a/doc/manual/expressions/builtins.xml +++ b/doc/manual/expressions/builtins.xml @@ -487,11 +487,8 @@ stdenv.mkDerivation { … } <title>Fetching a tag</title> <programlisting>builtins.fetchGit { url = "https://github.com/nixos/nix.git"; - ref = "tags/1.9"; + ref = "refs/tags/1.9"; }</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> |