Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hack/boilerplate.sh: fix error handling and use python3 #2587

Merged
merged 2 commits into from
Jun 20, 2023

Conversation

andreasf
Copy link
Contributor

Fixes #2586

Description

This fixes error handling in hack/boilerplate.sh and calls boilerplate.py with python3 instead of python.

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

  • Includes unit tests
  • Adds integration tests if needed.

See the contribution guide for more details.

Reviewer Notes

  • The code flow looks good.
  • Unit tests and or integration tests added.

python2 is no longer included in most distros and will be removed from
Github Actions Ubuntu images:
actions/runner-images#7402
Copy link
Collaborator

@aaron-prindle aaron-prindle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR @andreasf! LGTM

@aaron-prindle aaron-prindle merged commit 7cd39d1 into GoogleContainerTools:main Jun 20, 2023
kylecarbs pushed a commit to coder/kaniko that referenced this pull request Jul 12, 2023
…nerTools#2587)

* hack/boilerplate.sh: fix successful return code when call to python fails

* hack/boilerplate.sh: update to python3

python2 is no longer included in most distros and will be removed from
Github Actions Ubuntu images:
actions/runner-images#7402
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

hack/boilerplate.sh does not work on systems without python2 yet returns success
2 participants