-
Notifications
You must be signed in to change notification settings - Fork 15
Sparse lock files WIP #579
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
base: main
Are you sure you want to change the base?
Changes from all commits
1ae081e
a23b4cc
938e69b
2c02256
05cf555
7377422
b06972a
16335ed
472b0f5
eb49bf0
5606148
ab8592c
c74de77
e767770
cb3daf5
6ae378c
51da5d1
20f20a6
1678bd4
98b0c43
fbc2f7b
d050b86
4061fb1
9f747f8
431b73d
7c555a9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| Observe the following rules when contributing to this repository: | ||
|
|
||
| * Before committing, run ./maintainers/format.sh to detect/fix any formatting issues. | ||
| * Before committing, run `./maintainers/format.sh` to detect/fix any formatting issues. If you've only touched C++ files, run `run ./maintainers/format.sh clang-format` since it's a lot faster. | ||
|
|
||
| * Use "Assisted-by:" instead of "Co-Authored-By:" for the Claude trailer in commits. | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,7 +9,14 @@ if test -z "$_NIX_PRE_COMMIT_HOOKS_CONFIG"; then | |
| exit 1; | ||
| fi; | ||
|
|
||
| while ! pre-commit run --config "$_NIX_PRE_COMMIT_HOOKS_CONFIG" --all-files; do | ||
| # The argument is either `--until-stable` or the ID of the single | ||
| # hook to run. | ||
| hook="" | ||
| if [ "${1:-}" != "--until-stable" ]; then | ||
| hook="${1:-}" | ||
| fi | ||
|
|
||
| while ! pre-commit run --config "$_NIX_PRE_COMMIT_HOOKS_CONFIG" --all-files ${hook:+"$hook"}; do | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🩺 Stability & Availability | 🟠 Major | ⚡ Quick win 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -eu
printf '%s\n' '--- maintainers/format.sh ---'
cat -n maintainers/format.sh
printf '%s\n' '--- related references ---'
rg -n --hidden --glob '!node_modules' --glob '!dist' --glob '!build' 'until-stable|pre-commit run|format\.sh' .Repository: DeterminateSystems/nix-src Length of output: 2403 🏁 Script executed: #!/bin/bash
set -eu
python3 - <<'PY'
from pathlib import Path
p = Path("maintainers/format.sh")
text = p.read_text()
print("has_until_stable=", "--until-stable" in text)
for i, line in enumerate(text.splitlines(), 1):
if 15 <= i <= 25:
print(f"{i}: {line}")
PYRepository: DeterminateSystems/nix-src Length of output: 457 🏁 Script executed: #!/bin/bash
set -eu
python3 - <<'PY'
from pathlib import Path
lines = Path("maintainers/format.sh").read_text().splitlines()
for n, line in enumerate(lines, 1):
if 1 <= n <= 40:
print(f"{n}: {line}")
PYRepository: DeterminateSystems/nix-src Length of output: 923 Stop retrying persistent With 🤖 Prompt for AI Agents |
||
| if [ "${1:-}" != "--until-stable" ]; then | ||
| exit 1 | ||
| fi | ||
|
|
||
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.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: DeterminateSystems/nix-src
Length of output: 13601
🏁 Script executed:
Repository: DeterminateSystems/nix-src
Length of output: 2831
Use executable formatter commands.
From a normal shell, document
nix develop -c ./maintainers/format.shandnix develop -c ./maintainers/format.sh clang-format. Remove the extraruntoken.🤖 Prompt for AI Agents
Source: Learnings