-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Explain fetchTarball timeout behavior in the doc #2164
Conversation
doc/manual/expressions/builtins.xml
Outdated
<para>The fetched tarball is chached for a certain amount of time | ||
(1 hour by default) in <literal>~/.cache/nix/tarballs/</literal>. | ||
You can change the cache timeout either in command line with | ||
<literal>--option tarball-ttl <number of seconds></literal> or |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<number of seconds>
is not valid XML. You should do something like <replaceable>ttl</replaceable>
.
doc/manual/expressions/builtins.xml
Outdated
Note that when obtaining the hash with <varname>nix-prefetch-url | ||
<para>The fetched tarball is chached for a certain amount of time | ||
(1 hour by default) in <literal>~/.cache/nix/tarballs/</literal>. | ||
You can change the cache timeout either in command line with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in
-> on the
.
doc/manual/expressions/builtins.xml
Outdated
You can change the cache timeout either in command line with | ||
<literal>--option tarball-ttl <number of seconds></literal> or | ||
in the Nix configuration file with tarball-ttl | ||
<literal><number of seconds to cache></literal> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Period missing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideally chached
will be fixed to cached
. If you feel especially interested, the tags could be made a bit more semantically correct.
doc/manual/expressions/builtins.xml
Outdated
@@ -280,8 +280,15 @@ with import (fetchTarball https://github.com/NixOS/nixpkgs-channels/archive/nixo | |||
|
|||
stdenv.mkDerivation { … } | |||
</programlisting> | |||
|
|||
Note that when obtaining the hash with <varname>nix-prefetch-url | |||
<para>The fetched tarball is chached for a certain amount of time |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
chached
-> cached
doc/manual/expressions/builtins.xml
Outdated
|
||
Note that when obtaining the hash with <varname>nix-prefetch-url | ||
<para>The fetched tarball is chached for a certain amount of time | ||
(1 hour by default) in <literal>~/.cache/nix/tarballs/</literal>. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(a nit, you don't have to change this:) <literal>
could be <filename>
.
doc/manual/expressions/builtins.xml
Outdated
<para>The fetched tarball is chached for a certain amount of time | ||
(1 hour by default) in <literal>~/.cache/nix/tarballs/</literal>. | ||
You can change the cache timeout either on the command line with | ||
<literal>--option tarball-ttl <replaceable>number of seconds</replaceable></literal> or |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(a nit, you don't have to change this:) <literal>
could be <option>
, same with the following <literal>
.
Done! Thanks for the review :) |
doc/manual/expressions/builtins.xml
Outdated
@@ -280,8 +280,15 @@ with import (fetchTarball https://github.com/NixOS/nixpkgs-channels/archive/nixo | |||
|
|||
stdenv.mkDerivation { … } | |||
</programlisting> | |||
<para>The fetched tarball is cached for a certain amount of time |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, one more thing: there also needs to be a </para>
before this opening <para>
.
50f3375
to
8dd2e28
Compare
There was one minor problem left, where you committed |
Just add some doc on the timeout mechanism of the fetchTarball builtins (because I only find this information on the IRC :))