-
Notifications
You must be signed in to change notification settings - Fork 270
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
Separating assignments to code_script and guard_script as they should… #293
Conversation
… be different scripts and not hold the same reference.
Hi. I am an automated pull request bot named Curry. There are commits in this pull request whose authors are not yet authorized to contribute to Chef Software, Inc. projects or are using a non-GitHub verified email address. To become authorized to contribute, you will need to sign the Contributor License Agreement (CLA) as an individual or on behalf of your company. You can read more on Chef's blog. GitHub Users Who Are Not Authorized To ContributeThe following GitHub users do not appear to have signed a CLA: |
I believe this PR is inspired by #291. I think your concern there was that the concatenation of the guard_script and code_script. Here you are referring to a assignment by reference issue. So if they are unrelated thats fine but I don't think the reference issue exits here. cert_script just returns a string and both guard_script and code_script are assigned to that string. Later changing guard_script will not impact code_script. However, I might be totally missing the issue here. Can you shed more detail? |
Sure. The assignment is by reference if you do it like this: code_script=guard_script= Here is an example. Notice the object_id:
|
Hi. Your friendly Curry bot here. Just letting you know that all commit authors have become authorized to contribute. I have added the "Signed CLA" label to this issue so it can easily be found in the future. |
ah duh. of course. I was thinking of reassignments and forgot about the concatenation. |
Auto correct rubocop warnings and disable others
You think you can rebase master? I think that will get this to green. |
… be different scripts and not hold the same reference.
Done! |
👍 Cc @chef/windows-client |
👍 LGTM |
Separating assignments to code_script and guard_script as they should…
Separating assignments to code_script and guard_script as they should be different scripts and not hold the same reference.