-
Notifications
You must be signed in to change notification settings - Fork 37
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
Potentially undesirable behavior: Lockfile deleted and recreated #111
Comments
This was created a while ago and this code was part of the orb since the beginning. The person who made it is no longer part of CircleCI so I cannot be certain, but for my understanding of the code, it is done this way so the there is no lockfile when the project doesn't have one defined. About the clean up you mention, I don't understand very well what do you mean. Would you like to delete |
It's been a while since I thought about this, but I guess I'm just not sure about that scenario. It seems to me that if In other words, If |
Looking through the history of the file, and the issues and PRs related to it, I found the |
I see, thanks! Might be worth tidying up at some point, but clearly it's not a very impactful detail. |
Thanks for the heads up @tboddyspargo, for now I will close this issue. We will take a look at cleaning this up in the next major release. |
Describe Request:
Thanks for this awesome, orb, everyone! This really helps avoid re-inventing the wheel within the community!
I just wanted to call out this odd behavior and ask if there was a specific reason for it:
Within the
Copy to cache directory
step of theinstall-packages
commandThis code appears to be deleting and then immediately re-creating the temporary lockfile. Why?
FWIW: I think it would be good for this command to clean up after itself (by removing the temporary lockfile copy), but it would need to do so after the
save_cache
step.Supporting Documentation Links:
The text was updated successfully, but these errors were encountered: