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

[cling-cpt] Removed 2 globals and implemented them with parameter passing [skip-ci] #11058

Merged
merged 2 commits into from
Jul 30, 2022

Conversation

saisoma123
Copy link
Contributor

This Pull request: Reduces global variable mutation

Changes or fixes: Removed the CPT_SRC_DIR and REVISION global variables and implemented them in the functional parameter passing style.

Checklist:

  • tested changes locally
  • [NA] updated the docs (if necessary)

This PR fixes #406 mentioned in meta issue list (root-project/cling#406)

@phsft-bot
Copy link
Collaborator

Can one of the admins verify this patch?

@@ -1869,7 +1871,7 @@ def custom_input(prompt, always_yes=False):
workdir = os.path.abspath(os.path.expanduser(args['with_workdir']))
srcdir = os.path.join(workdir, 'cling-src')
CLING_SRC_DIR = os.path.join(srcdir, 'tools', 'cling')
CPT_SRC_DIR = os.path.join(CLING_SRC_DIR, 'tools', 'packaging')
# CPT_SRC_DIR = os.path.join(CLING_SRC_DIR, 'tools', 'packaging')
Copy link
Member

Choose a reason for hiding this comment

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

Can you remove the commented code? This PR seems good to go.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @vgvassilev just removed the commented code

@vgvassilev vgvassilev merged commit 7ed0fd1 into root-project:master Jul 30, 2022
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.

3 participants