Repository navigation
Conversation
Based on NixOS#6 from shlevy
Problem noticed by niksnut.
Member
|
Applied! |
zolodev
pushed a commit
to zolodev/nix
that referenced
this pull request
Jan 1, 2024
….3.1 chore(deps): bump sphinx from 3.3.0 to 3.3.1
ConnorBaker
pushed a commit
to ConnorBaker/nix
that referenced
this pull request
Jul 25, 2025
…fc44aa9-a290-409e-90f9-a3497b03c021 Release v3.6.4
ConnorBaker
added a commit
to ConnorBaker/nix
that referenced
this pull request
May 23, 2026
`printIdentifier` reimplemented the lexer's `ID` regex inline (first-char predicate `[a-zA-Z_]`, per-char predicate `[a-zA-Z0-9_'-]`) before falling back to `printLiteralString`, while `printAttributeName` already dispatched through a file-local `isVarName`. The two predicates accepted the same set of identifiers — `isVarName`'s first-char rejection (`[0-9'-]`) combined with its per-char loop (`[a-zA-Z0-9_'-]` only) excluded the same characters that `printIdentifier`'s explicit `[a-zA-Z_]` first-char gate excluded — so the refactor is a clarification, not a behaviour change. Promote `isVarName` to a public helper, restructure its first-char check to mirror the lexer's `ID = [a-zA-Z_][a-zA-Z0-9_'-]*` form directly, and have `printIdentifier` call it. The `isReservedKeyword` and empty-string branches in `printIdentifier` keep their existing output (raw quotes around the keyword token, `""` for empty), since `printIdentifier` is documented as the non-attrset variant. Refs candidate NixOS#109. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
ConnorBaker
added a commit
to ConnorBaker/nix
that referenced
this pull request
May 23, 2026
…ards Adds **Branch:** lines to the 30 catalog entries that landed as commits on the four cleanup shard branches (libexpr, libstore, libutil, nix-cli) over the previous batch. Per-shard tally (commits on each branch beyond the previously-pushed tip): - libexpr (HEAD 437eea9 -> +10): NixOS#64, NixOS#66, NixOS#68, NixOS#106, NixOS#107, NixOS#109, NixOS#110, NixOS#112, NixOS#196, NixOS#199. Two of the original twelve were skipped on rule grounds: NixOS#194 (LookupPath::Elem flatten) — the candidate framing claimed the types were internal, but search-path.hh ships via install_headers, so collapsing is a public-ABI break, not a trivial flatten; NixOS#197 (one-arg findFile drop) — EvalState::lookupPath is a private member, so the candidate's "have callers pass it explicitly" prescription cannot apply. - libstore (HEAD 5f5b815 -> +12): NixOS#4, NixOS#5, NixOS#6, NixOS#14, NixOS#47, NixOS#82, NixOS#114, NixOS#115, NixOS#119, NixOS#157, NixOS#159, NixOS#165. Several departures from the literal prescription, recorded in each commit body and in the per-candidate Branch line: NixOS#14 lifted only getRemoteFSAccessor with a getLocalNarCacheDir hook (left the trivial getFSAccessor overrides per-class); NixOS#115 extracted only the prelude (lockProfile + findGenerations) since two callers use stateful reverse iteration; NixOS#119 confirmed init's setDefault is a different shape and stayed out; NixOS#159 dropped the assert(!childEOF) defensive check after walking Goal::handleEOF producers; NixOS#165 used option (b) of the prescription (a new derivation-output-fwd.hh) because option (a) would have introduced an include cycle. - libutil (HEAD 784a4f4 -> +3): NixOS#29, NixOS#99, NixOS#117. NixOS#29's commit body caveat (XDG_*_HOME / XDG_CONFIG_DIRS reads moved from per-call to cached) is recorded on the candidate Branch line. - nix-cli (HEAD 48524e0 -> +5): NixOS#24, NixOS#77, NixOS#89, NixOS#91, NixOS#187. NixOS#91 shipped the GcRootNamer + nameForCurrent consolidation but deferred the candidate's addPermRootWithCounter free helper because three behavioural differences across call sites (rootNr increment position, absPath timing, printGCWarning conditions on store2 null) would have either changed user-visible path naming or grown the API. STATUS.md's cleanup-branches table is updated with each shard's expanded Addresses list, and the Status column now distinguishes the already-pushed tips (libfetchers/libflake/libmain remain Pushed since they got no new commits) from the four shards whose new commits are local-only. Push policy is explicit-only — none of the four shard branches has been pushed past its prior tip. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
ConnorBaker
added a commit
to ConnorBaker/nix
that referenced
this pull request
May 23, 2026
Final-pass review of the 30 trivial candidates surfaced 20 nits/deferrals; ten of those that produced visible behaviour or naming changes need their `**Branch:**` lines updated: - NixOS#6 (GET_PROTOCOL_MAJOR/MINOR): the candidate originally proposed hoisting the macros to common-protocol.hh; post-cleanup review found zero call sites tree-wide and they were deleted entirely in a follow-up commit on cleanup/libstore. - NixOS#109 (isVarName): the original commit body claimed a behaviour change ("printAttributeName now string-quotes...") but the predicates were already accepting the same set of identifiers. Re-derived from source: old `isVarName`'s per-char loop already rejected non-`[a-zA-Z0-9_'-]` bytes from the first position, matching the new first-char gate. The Branch line now describes the refactor as "promoted... and restructured" rather than "tightened... behaviour change." - NixOS#110 (SeenSet): the alias was applied at five sites in the original landing; a follow-up commit migrated EvalState::forceValueDeep for consistency, bringing the count to six. - NixOS#112 (BUG_12899_URL): the original commit picked a `#define` because the URL was concatenated into format strings via adjacent-string-literal syntax. Post-cleanup review converted to `constexpr std::string_view bug12899Url` and routed through boost::format `%1%`; the rendered text is byte-identical. - NixOS#115 (forEachGenerationToDelete): the prelude helper was originally proposed under the iteration-implying name `forEachGenerationToDelete`; post-cleanup review noted the function does not iterate (it acquires the lock, loads the generations, and hands them to the body callback) and renamed to `withLockedProfileGenerations`. Also adds catalog candidate NixOS#219 (post-build-hook timeout silently dropped) — a pre-existing latent bug surfaced by the post-cleanup adversarial review of NixOS#157's runPostBuildHookCo extraction. Bumps totals everywhere (INVENTORY.md, candidates/README.md, STATUS.md "catalog split" entry). STATUS.md "Recently completed" now records the 30-candidate landing plus the 12-agent review run and the 20-nit polish pass. The "Local- only" status of the four shard branches is unchanged; push policy is explicit-only. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
ConnorBaker
added a commit
to ConnorBaker/nix
that referenced
this pull request
May 24, 2026
`printIdentifier` reimplemented the lexer's `ID` regex inline (first-char predicate `[a-zA-Z_]`, per-char predicate `[a-zA-Z0-9_'-]`) before falling back to `printLiteralString`, while `printAttributeName` already dispatched through a file-local `isVarName`. The two predicates accepted the same set of identifiers — `isVarName`'s first-char rejection (`[0-9'-]`) combined with its per-char loop (`[a-zA-Z0-9_'-]` only) excluded the same characters that `printIdentifier`'s explicit `[a-zA-Z_]` first-char gate excluded — so the refactor is a clarification, not a behaviour change. Promote `isVarName` to a public helper, restructure its first-char check to mirror the lexer's `ID = [a-zA-Z_][a-zA-Z0-9_'-]*` form directly, and have `printIdentifier` call it. The `isReservedKeyword` and empty-string branches in `printIdentifier` keep their existing output (raw quotes around the keyword token, `""` for empty), since `printIdentifier` is documented as the non-attrset variant. Refs candidate NixOS#109. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
ConnorBaker
added a commit
to ConnorBaker/nix
that referenced
this pull request
May 24, 2026
…op diagnostic shifts After candidate NixOS#109, the canonical declaration of `nix::isVarName` moved from `src/libexpr/print.cc` to `src/libexpr/include/nix/expr/ print.hh` (with the lexer-mirror invariant restated in the docstring there). The pinning comment in `lexer.l`'s ID rule still pointed at the .cc file. Retarget to the header. Add doc/manual/rl-next/primop-diagnostic-position.md documenting the position-anchor and ANSI-colouring shift for `builtins.fetchurl`, `builtins.fetchTarball`, `builtins.fetchGit`, and `builtins.path` that landed under candidates NixOS#79 and NixOS#220. The wording of existing diagnostics is otherwise unchanged. Refs candidates NixOS#109, NixOS#79, NixOS#220. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
roberth
added a commit
to roberth/nix
that referenced
this pull request
Aug 9, 2026
…ixOS#109) Second half of the AmbientAsks rip-out: the walker's live-fire path for AmbientAsks-chain-driven cb-apply invocation is gone. `dispatchApplyLive` and its `inFlightApplyReqs` short-circuit are removed; the callbackApply-slot path in `dispatchAmbientQuery` (task NixOS#103) is now the sole live-fire mechanism for cb-apply dispatches. The three file-scope helpers (`parsePathFromParams`, `resolveRoots`, `navigatePath`) are retained — both the callbackApply-slot branch and the general `from`-based live-validation branch of `dispatchAmbientQuery` still call them for path parsing / root resolution / structural navigation. Suite: 312/335 pass, 16 fail, 7 skipped — same baseline as before this cleanup, no regression from the removal. Assisted-by: Claude Code (Claude Opus 4.7)
roberth
added a commit
to roberth/nix
that referenced
this pull request
Aug 9, 2026
…xOS#109) The `chainCursor` field, its ctor param, its `getChainCursor()` accessor, and the XOR-advance / propagation logic in the `<replay-local-lambda>` primop impl were the walker-side arm of AmbientAsks — advancing a per-firing cursor by each Fact's elementHash to keep the walker in lockstep with cold's recorded AmbientAsks chain. `dispatchApplyLive` (which read the propagated cursor) is gone; `getChainCursor()` has no external callers; the XOR advance's only observable effect was writing to a field nobody reads. Removed: - Field, ctor param, and getter on `ReplayCallbackArg`. - Two derived-child ctor calls no longer pass `chainCursor`. - Top-level callbackApply-slot construction in `dispatchAmbientQuery` no longer allocates one. - `<replay-local-lambda>` primop's impl: `chainCursorSaved`, `initialChainCursor`, `localChainCursor` locals + lambda captures, the per-Fact XOR advance, and the final propagation to `*chainCursorSaved`. Comments referencing the AmbientAsks chain rewritten to describe what remains (localWalkFacts extension for the synthetic's `from` stamping) without appealing to a mechanism that no longer exists. Suite: 312/16/7, unchanged. Assisted-by: Claude Code (Claude Opus 4.7)
roberth
added a commit
to roberth/nix
that referenced
this pull request
Aug 9, 2026
- flushAmbient → flushPending (writer method; describes what it does now — insert deferred Requests, and on processApplies close the trailing chunk). - TracingCallbackApplyResult, TracingCallbackArg, ReplayCallbackArg header docstrings rewritten to describe the current mechanism: observations flow through logCallbackObservation into the enclosing CallbackCell's runningObsSet, get snapshotted (by value) into an ObservationSet referenced from a QueryCallbackApply request. The earlier docstrings described AmbientAsks / InnerValueResponse storage flows that were removed by task NixOS#109. - In-body comments sweep in tracing-replay-evaluator.cc, tracing-callback-apply-result.cc, tracing-decision-graph.cc: "ambient facts" / "ambient queries" / "ambient response" reworded to the current terminology (outer-value queries, recorded outer- value responses, callback observations). - trace-types.cc section header "Ambient message pairing serialization" → "OuterValueRequest / OuterValueResponse serialization" (matches what the section actually serialises). Suite: 312/16/7, unchanged. Assisted-by: Claude Code (Claude Opus 4.6-4.7)
roberth
added a commit
to roberth/nix
that referenced
this pull request
Aug 9, 2026
…t mechanism flushPending / closeAsksEdge / createCallbackCell docstrings all described the pre-NixOS#109 AmbientAsks flush + AmbientResult synthesis flow. Rewritten to describe what the methods do now: insert deferred Requests into the CAS pool (flushPending), close the current Asks edge and flush (closeAsksEdge), push a CallbackCell that receives observations from TracingCallbackArg / TracingCallbackApplyResult via logCallbackObservation (createCallbackCell). Also dropped an orphaned docstring block that documented a method (logAmbientApplyFact) which no longer exists. Suite: 312/16/7, unchanged. Assisted-by: Claude Code (Claude Opus 4.6-4.7)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Based on #6 from shlevy