build: check for different deprecation signatures
Right now we strictly test for `DEP00XX`. We are already above that number of deprecations and it is better to have a wildcard for the first three numbers. Only the last character has to match the X to print a warning. PR-URL: https://github.com/nodejs/node/pull/20384 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
This commit is contained in:
parent
4546ad2784
commit
c71b97303c
4
Makefile
4
Makefile
@ -813,8 +813,8 @@ release-only:
|
||||
exit 1 ; \
|
||||
fi
|
||||
@if [ "$(DISTTYPE)" != "nightly" ] && [ "$(DISTTYPE)" != "next-nightly" ] && \
|
||||
`grep -q DEP00XX doc/api/deprecations.md`; then \
|
||||
echo 'Please update DEP00XX in doc/api/deprecations.md (See doc/releases.md)' ; \
|
||||
`grep -q DEP...X doc/api/deprecations.md`; then \
|
||||
echo 'Please update DEP...X in doc/api/deprecations.md (See doc/releases.md)' ; \
|
||||
exit 1 ; \
|
||||
fi
|
||||
@if [ "$(shell git status --porcelain | egrep -v '^\?\? ')" = "" ]; then \
|
||||
|
Loading…
x
Reference in New Issue
Block a user