Skip to content
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

doc: fix #96408 #96421

Closed
wants to merge 1 commit into from
Closed

doc: fix #96408 #96421

wants to merge 1 commit into from

Conversation

blaggacao
Copy link
Contributor

No description provided.

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/dockertools-imprecisions/8770/12

Copy link
Member

@samueldr samueldr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In addition to the in-line comment, this PR does not respect the CONTRIBUTING guidelines.

The commit message is does not describe the change, referring only to the bug by number. There is no explanation as to the intent of the change.

@@ -12,7 +12,7 @@
<title>buildImage</title>

<para>
This function is analogous to the <command>docker build</command> command, in that it can be used to build a Docker-compatible repository tarball containing a single image with one or multiple layers. As such, the result is suitable for being loaded in Docker with <command>docker load</command>.
This function is analogous to the <command>docker build</command> command, in that it can be used to build a Docker-compatible repository tarball containing a single image with one or multiple layers. As such, the <literal>./result/*</literal> is suitable for being loaded in Docker with <command>docker load</command>.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The output of a dockerTools is a docker image, a .tar.gz. Representing it as ./result/, which implies a directory, is wrong.

Additionally, a result is not necessarily a symlink as produced by nix-build. It is a store path, which can be used as inputs to other derivations too. The word result does not need further qualifications as it is just the word, with a well-known definition in the context of Nix builds.

What it might benefit from, if it is possible with the documentation tooling (current or incoming) is a link to a glossary of terms. Though this circles back to the concept that the reference documentation assumes a level of familiarity with Nix.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The output of a dockerTools is a docker image, a .tar.gz. Representing it as ./result/, which implies a directory, is wrong.

I just learned this. This it's inconvenient - a path would be better: https://discourse.nixos.org/t/dockertools-result-not-a-folder/8771

Additionally, a result is not necessarily a symlink as produced by nix-build. It is a store path, which can be used as inputs to other derivations too. The word result does not need further qualifications as it is just the word, with a well-known definition in the context of Nix builds.

Then it must be italic.

Copy link
Contributor Author

@blaggacao blaggacao Aug 27, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the context of input for the docker load command, it can't be a result it must be one of the ./.../*.tar.gz (a single one).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or... the author didn't mean result but just plain English "result" - this is how I first read it.

@blaggacao blaggacao closed this Aug 27, 2020
blaggacao pushed a commit to blaggacao/nixpkgs that referenced this pull request Aug 27, 2020
@blaggacao
Copy link
Contributor Author

blaggacao commented Aug 27, 2020

Replaced by #96424

@blaggacao blaggacao deleted the patch-3 branch August 27, 2020 03:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants