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

Add build environment validation checks #1724

Merged
merged 1 commit into from
Dec 13, 2024
Merged

Add build environment validation checks #1724

merged 1 commit into from
Dec 13, 2024

Conversation

edmorley
Copy link
Member

  • Adds a warning if the Python buildpack has been run multiple times in the same build.
  • Adds a warning if an existing .heroku/python/ directory is found in the app source.
  • Improves the error message shown if the buildpack is used on an unsupported stack. Previously the build would fail with a curl download error depending on the availability of assets on S3. This scenario can only happen outside of Heroku, or in an old buildpack is used with a brand new stack (eg for Heroku-26).

The two warnings are the first step towards #1704 and #1710, and will be turned into errors in January 2025.

Towards #1704 and #1710.
GUS-W-17386432.
GUS-W-17309709.

@edmorley edmorley self-assigned this Dec 13, 2024
@edmorley edmorley marked this pull request as ready for review December 13, 2024 19:19
@edmorley edmorley requested a review from a team as a code owner December 13, 2024 19:19
@edmorley edmorley enabled auto-merge (squash) December 13, 2024 19:21
lib/checks.sh Outdated Show resolved Hide resolved
- Adds a warning if the Python buildpack has been run multiple times
  in the same build.
- Adds a warning if an existing `.heroku/python/` directory is found
  in the app source.
- Improves the error message shown if the buildpack is used on an
  unsupported stack. Previously the build would fail with a curl
  download error depending on the availability of assets on S3.
  This scenario can only happen outside of Heroku, or in an old
  buildpack is used with a brand new stack (eg for Heroku-26).

The two warnings are the first step towards #1704 and #1710, and will
be turned into errors in January 2025.

Towards #1704 and #1710.
GUS-W-17386432.
GUS-W-17309709.
Copy link
Contributor

@schneems schneems left a comment

Choose a reason for hiding this comment

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

Looks good. Reminds me of heroku/heroku-buildpack-ruby#552.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants