Replace script/update-policy with script/write-upstream-policy-files and script/commit-upstream-policy-files (closes #165)
check / check (push) Successful in 1m56s
check / check (push) Successful in 1m56s
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. It keeps a repo's own entries in .gitignore, .dockerignore, .editorconfig and .golangci.yml. It stops before writing when one of those files, or a repo's own script of the same name, has 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:
1 parent
964d973e3c
commit
3601ebf2a1
11 files changed
+1348
-825
No files matched your search
@@ -1,4 +1,4 @@
|
||||
.PHONY: bootstrap setup test lint fmt fmt-check check docker hooks update-policy
|
||||
.PHONY: bootstrap setup test lint fmt fmt-check check docker hooks write-upstream-policy-files commit-upstream-policy-files
|
||||
|
||||
# Makefile targets are thin shims; the implementations live in script/
|
||||
# per the scripts-to-rule-them-all pattern (see the Entrypoints section
|
||||
@@ -31,5 +31,8 @@ docker:
|
||||
hooks:
|
||||
@script/install-precommit
|
||||
|
||||
update-policy:
|
||||
@script/update-policy
|
||||
write-upstream-policy-files:
|
||||
@script/write-upstream-policy-files
|
||||
|
||||
commit-upstream-policy-files:
|
||||
@script/commit-upstream-policy-files
|
||||
Reference in new issue
Block a user