Skip to content

Commit

Permalink
docs: Use the explicit ref for fetchGit with a tag
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jtanguy committed Sep 11, 2019
1 parent 92ede15 commit ae244af
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions doc/manual/expressions/builtins.xml
Expand Up @@ -499,11 +499,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>
Expand Down

0 comments on commit ae244af

Please sign in to comment.