Skip to content

Stop using global variable in warn_or_error_if_python_version_file_missing()#2076

Merged
edmorley merged 1 commit intomainfrom
replace-global-var-use
Apr 10, 2026
Merged

Stop using global variable in warn_or_error_if_python_version_file_missing()#2076
edmorley merged 1 commit intomainfrom
replace-global-var-use

Conversation

@edmorley
Copy link
Copy Markdown
Member

@edmorley edmorley commented Apr 10, 2026

Longer term I'll refactor bin/compile to reduce the number of globals set, to prevent accidentally relying on globals in the library functions.

GUS-W-21939949.

…issing()`

Longer term I'll refactor `bin/compile` to reduce the number
of globals set, to prevent accidentally relying on globals in the
library functions.
@edmorley edmorley self-assigned this Apr 10, 2026
@edmorley edmorley marked this pull request as ready for review April 10, 2026 11:04
@edmorley edmorley requested a review from a team as a code owner April 10, 2026 11:04
@edmorley edmorley enabled auto-merge (squash) April 10, 2026 11:04
Copy link
Copy Markdown

@colincasey colincasey left a comment

Choose a reason for hiding this comment

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

Nice! Makes me want to untangle a bunch of globals in the Node.js buildpack 😄

@edmorley edmorley merged commit ab1d03f into main Apr 10, 2026
7 of 8 checks passed
@edmorley edmorley deleted the replace-global-var-use branch April 10, 2026 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants