-
Notifications
You must be signed in to change notification settings - Fork 2
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
framework/base sync #28
base: main
Are you sure you want to change the base?
Conversation
@woodseowl How do you use it -- is it a composer command you run from your local copy of cwd_base, or? I haven't used "scripts" in composer other than like, those hook/triggered things associated with install/create-project/update/require operations, like...
(I'm sure there are other ways to make use of the scripts section of composer.json, I just don't know them :) ) |
Composer scripts are straight forward:
But make sure you see assumption #1: "you have a directory next to cwd_base that is the checkout of cwd_framework" If I got the concept right and this works for @ama39, I'll write it up more. For now, I figure it doesn't hurt to have it in composer.json? |
Thank you for this. I updated the cwd_framework repo today, and am about to try this script out for the first time. Looking through the commands, I think some of them will need minor tweaks. I'll follow-up with those changes after I verify, but I suspect the following changes will be needed:
|
The script worked nicely. Thank you again! I did find more tweaks that are needed:
So overall, it's looking like things are working well with this script, but that there are a number of file exceptions that make the logic messier to cover. Does the syntax for those recursive copy commands include something for defining exceptions? It might be smoother to define exceptions than to have to specify all the exact files to copy. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change requests were noted in my two comments.
Wow, my last comment was July 10, 2020 -- that was maybe 4 days before I got sequestered to Daily Check? I'm sorry this didn't progress further. And, for what it's worth, I'm always happy to have someone else pick up something like this and move it forward (perhaps on another branch + PR so it's easy to see). I don't know when I will be able to work on this, so please try to carry it forward if you want to! |
This is a functional proof of concept that we could use a composer script to make the process of keeping cwd_base in sync with cwd_framework updates. They would still be managed as separate repositories.
Notes: