Skip to content

Commit

Permalink
hack/boilerplate*: replace python with python3
Browse files Browse the repository at this point in the history
python2 will be (or already has been?) removed from Github Actions
Ubuntu images: actions/runner-images#7401
  • Loading branch information
andreasf committed Jun 18, 2023
1 parent eea12bd commit 30acdc6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion hack/boilerplate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ ignore="vendor\|out"
BOILERPLATEDIR=./hack/boilerplate
# Grep returns a non-zero exit code if we don't match anything, which is good in this case.
set +e
files=$(python ${BOILERPLATEDIR}/boilerplate.py --rootdir . --boilerplate-dir ${BOILERPLATEDIR} | grep -v $ignore)
files=$(python3 ${BOILERPLATEDIR}/boilerplate.py --rootdir . --boilerplate-dir ${BOILERPLATEDIR} | grep -v $ignore)
set -e
if [[ ! -z ${files} ]]; then
echo "Boilerplate missing in:"
Expand Down
2 changes: 1 addition & 1 deletion hack/boilerplate/boilerplate.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Copyright 2018 Google LLC
#
Expand Down
2 changes: 1 addition & 1 deletion hack/boilerplate/boilerplate.py.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Copyright YEAR Google LLC
#
Expand Down

0 comments on commit 30acdc6

Please sign in to comment.