Skip to content

Commit

Permalink
scripts: handle egrep deprecation notice
Browse files Browse the repository at this point in the history
Change scripts/lint to handle the deprecation warning about egrep that's
reported on recent non-Debian systems by checking the exit code
explicitly instead of merely checking for the presence of output.

Fixes #3635
  • Loading branch information
bhcleek committed Jun 5, 2024
1 parent 14eedf6 commit e2e7097
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.22.0
FROM --platform=linux/amd64 golang:1.22.3

RUN apt-get update -y --allow-insecure-repositories && \
apt-get install -y build-essential curl git libncurses5-dev python3-pip && \
Expand Down
6 changes: 3 additions & 3 deletions scripts/lint
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ lint=$(sh "$vimdir/share/vim/vimgo/pack/vim-go/start/vim-vimlint/bin/vimlint.sh"
-c func_abort=1 \
-e EVL110=1 -e EVL103=1 -e EVL104=1 -e EVL102=1 \
"$vimgodir" \
2>&1 ||:)
if [ -n "$lint" ]; then
echo "FAILED"
2>&1)
result="$?"
if [ "$result" -eq "2" ]; then
echo "$lint"
echo
failed=6
Expand Down

0 comments on commit e2e7097

Please sign in to comment.