Replace script/update-policy with script/write-upstream-policy-files and script/commit-upstream-policy-files (closes #165)
check / check (push) Successful in 2m3s

script/write-upstream-policy-files fetches the shared policy files
from prompts over HTTP and writes them into a repo clone, or into its
own repo. It commits nothing. A repo gets only the documents its own
work uses; its copies of the others are deleted. It keeps a repo's own
entries in .gitignore, .dockerignore, .editorconfig and .golangci.yml,
and stops, writing nothing, rather than lose a line it cannot keep.

script/commit-upstream-policy-files replaces script/update-policy. It
fetches the current script/write-upstream-policy-files, runs it on its
own repo and commits the result without pushing.
make commit-upstream-policy-files replaces make update-policy.

test/commit-upstream-policy-files.sh replaces test/update-policy.sh.
The Dockerfile's test stage runs it with no timeout, with coreutils so
that cp is GNU cp.

Model: opus-5-5
This commit is contained in:
sneak committed 2026-11-16 23:12:45 +00:00
1 parent 964d973e3c
commit 39f59d399b
11 files changed
+1473 -825

No files matched your search

+9 -4
View File
@@ -118,7 +118,7 @@ alpine. We provide:
`script/docker` for the image tag
- `script/test` — `docker build --target test --output type=cacheonly .`,
building the `test` phase of the `Dockerfile`, which runs
`test/update-policy.sh`, without writing an image
`test/commit-upstream-policy-files.sh`, without writing an image
- `script/lint` — `docker build --target lint --output type=cacheonly .`,
building the `lint` phase, which runs prettier over the markdown files,
without writing an image
@@ -138,9 +138,14 @@ alpine. We provide:
`script/check`
- `script/install-precommit` — installs the git pre-commit hook (our own
extension); `make hooks` shims to it
- `script/update-policy` — fetch the vendored policy files from this repo,
commit them and push (our own extension); it is for the repos that vendor them
and stops when run here
- `script/write-upstream-policy-files` — fetch the vendored policy files from
this repo over HTTP and write them into a repo (our own extension). It writes
into the repo given as its argument, or its own repo with no argument. It
stops when its target is this repo.
- `script/commit-upstream-policy-files` — fetch the current
`script/write-upstream-policy-files`, run it on its own repo and commit the
result without pushing (our own extension). It is for the repos that vendor
the policy files. It stops when run here.
`make hooks` installs the pre-commit hook that runs `script/precommit`.