Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

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

Merged
aaron-prindle merged 2 commits into
GoogleContainerTools:mainfrom
andreasf:boilerplate_python3
Jun 20, 2023
Merged

hack/boilerplate.sh: fix error handling and use python3#2587
aaron-prindle merged 2 commits into
GoogleContainerTools:mainfrom
andreasf:boilerplate_python3

Conversation

@andreasf

Copy link
Copy Markdown
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.

andreasf added 2 commits June 19, 2023 12:39
python2 is no longer included in most distros and will be removed from
Github Actions Ubuntu images:
actions/runner-images#7402

@aaron-prindle aaron-prindle left a comment

Copy link
Copy Markdown
Collaborator

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

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