Skip to content

warn-large-path-threshold: define 0 as number to disable warnings#11726

Merged
edolstra merged 1 commit intoNixOS:masterfrom
Mic92:warn-large-threshold
Oct 23, 2024
Merged

warn-large-path-threshold: define 0 as number to disable warnings#11726
edolstra merged 1 commit intoNixOS:masterfrom
Mic92:warn-large-threshold

Conversation

@Mic92
Copy link
Copy Markdown
Member

@Mic92 Mic92 commented Oct 22, 2024

the default int64_t max was still overflowing for me, when this was dumped as json (noticed during building the manual). So making 0, the default and define it as "no warnings" fixes the situtation. Also it's much more human-readable in documentation.

Motivation

Context

Priorities and Process

Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

@Mic92 Mic92 requested a review from Ericson2314 as a code owner October 22, 2024 07:19
@github-actions github-actions bot added the store Issues and pull requests concerning the Nix store label Oct 22, 2024
@Mic92
Copy link
Copy Markdown
Member Author

Mic92 commented Oct 22, 2024

cc @roberth as discussed yesterday.

@Mic92 Mic92 force-pushed the warn-large-threshold branch from a61a2f9 to 0748348 Compare October 22, 2024 07:23
@Mic92 Mic92 marked this pull request as draft October 22, 2024 07:32
@Mic92
Copy link
Copy Markdown
Member Author

Mic92 commented Oct 22, 2024

Mhm. I am still getting a -1 in ./src/nix-manual/conf-file.json weird stuff.

@Mic92
Copy link
Copy Markdown
Member Author

Mic92 commented Oct 22, 2024

Ah. This is because it uses the nix from the build dependencies...

@Mic92 Mic92 marked this pull request as ready for review October 22, 2024 07:51
@edolstra
Copy link
Copy Markdown
Member

"0" was intended as the "log all paths" value, but since we're talking about NARs, which are always bigger than 0 bytes, I guess it's not a problem.

Ah. This is because it uses the nix from the build dependencies...

That's wrong, maybe it's a regression in the new build system? Nix shouldn't depend on Nix.

@roberth
Copy link
Copy Markdown
Member

roberth commented Oct 22, 2024

Nix shouldn't depend on Nix

Maybe in a cross build, but that's not implemented afaik.

@Mic92
Copy link
Copy Markdown
Member Author

Mic92 commented Oct 22, 2024

That's wrong, maybe it's a regression in the new build system? Nix shouldn't depend on Nix.

Here it is:

nix = find_program('nix', native : true)

@Mic92
Copy link
Copy Markdown
Member Author

Mic92 commented Oct 22, 2024

"0" was intended as the "log all paths" value, but since we're talking about NARs, which are always bigger than 0 bytes, I guess it's not a problem.

Setting it to 1, should still allow this use case. I added this to the doc string.

the default int64_t max was still overflowing for me, when this was dumped as json (noticed during building the manual).
So making 0, the default and define it as "no warnings" fixes the situtation.
Also it's much more human-readable in documentation.
@Mic92 Mic92 force-pushed the warn-large-threshold branch from 0748348 to e1834f4 Compare October 22, 2024 16:23
@edolstra edolstra merged commit 7b7a61b into NixOS:master Oct 23, 2024
@Mic92 Mic92 deleted the warn-large-threshold branch October 23, 2024 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

store Issues and pull requests concerning the Nix store

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants