Repository navigation
Commit d0b2c97
authored
build(nix): take dprint from the sandboxed systemfsoftware/dprint flake and drop the bin/dprint wrapper (#44)
## Summary
Take dprint from the sandboxed `systemfsoftware/dprint` flake instead of
core's build, and drop the committed `bin/dprint` wrapper. dprint now
arrives on PATH from the dev shell, and every caller runs bare `dprint`.
- `flake.nix`: add `dprint.url = "github:systemfsoftware/dprint";` with
no `nixpkgs` follows on it, use `dprint.packages.${system}.default` in
the dev shell, and drop the `dprint` package re-export. `core` stays
only for its `nixpkgs`.
- Delete `bin/dprint`.
- `package.json`, `.github/workflows/ci.yml`,
`.github/actions/checks-lane/action.yml`: call `dprint` instead of the
wrapper; the checks lane puts dprint on `GITHUB_PATH` from the dev
shell.
- `AGENTS.md`, `CONTRIBUTING.md`: drop the `bin/dprint` and "its dprint
build" mentions.
## Evidence
After (this branch, committed tree):
1. `git grep -nE '(bin|scripts)/dprint|nix/dprint\.nix' --
':!docs/plans' ':!repos' ':!CHANGELOG.md'` prints nothing.
2. `nix develop --accept-flake-config -c sh -c 'readlink -f "$(command
-v dprint)"'` prints
`/nix/store/sywvpwdas322nv6gc7w9rjj8zsp572dk-dprint/bin/dprint`. `nix
build github:systemfsoftware/dprint#default --dry-run --no-link` lists
no "will be built" entries, so it is substituted.
3. `nix develop --accept-flake-config -c dprint check` exits 0.
4. `nix develop --accept-flake-config -c dprint fmt` then `git diff
--exit-code` exits 0.
5. This repo has no lint-staged, husky or pre-commit path, so N/A. The
`format` script (`dprint fmt`) on a whitespace-only change to
`README.md` restored it to `HEAD` bytes.
Before (`main`):
1. The grep found `./bin/dprint` in `package.json` (three scripts),
`.github/workflows/ci.yml`, and a `bin/dprint` mention in
`CONTRIBUTING.md`.
2. `readlink -f "$(command -v dprint)"` printed
`/nix/store/zxxzdm1xsbnkh8k26f0lif51m96hszkx-dprint-0.54.0/bin/dprint`
(core).
3. `./bin/dprint check` exited 0.
4. `./bin/dprint fmt` then `git diff --exit-code` exited 0.
Tests and CI were not run locally; CI runs them.
Merged with admin rights: the required approval was the only blocker. CI
passed, and the cross-model review left no unresolved P0/P1.
---------
Co-authored-by: systemfsoftware-bot <318394648+systemfsoftware-bot@users.noreply.github.com>1 parent ab7bfd2 commit d0b2c97
8 files changed
Lines changed: 77 additions & 51 deletions
File tree
- .github
- actions/checks-lane
- workflows
- bin
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
| 9 | + | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
16 | | - | |
| 15 | + | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
| |||
This file was deleted.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
| |||
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
| 31 | + | |
37 | 32 | | |
38 | 33 | | |
39 | 34 | | |
40 | 35 | | |
41 | | - | |
| 36 | + | |
42 | 37 | | |
43 | 38 | | |
44 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
0 commit comments