-
-
Notifications
You must be signed in to change notification settings - Fork 189
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
Add a 'check' CLI command / API to check for new template version #1020
Comments
Copier doesn't have this feature yet, but I like it. 👍 from my side. |
Great, any ideas or preferences as to the CLI? |
Ok, I created #1031 with the following CLI, any opinions?
|
@sisp What should I do to see if we can make this feature happen? |
You can make a cron that updates the project, checks if there's any diff and, if so, opens a PR. That'd be quite simple:
I think it's a better solution:
Would this be enough to solve your use case? |
|
Yes, that is at the core of the issue. Updates always require dev attention. As long as this is the case, it would be nice to have a reliable way of finding out whether a human should attempt an update. Checking the version seems like the simplest way of doing this 😃 . |
I still think it's better to automate as much as possible. But probably this feature makes it easier to design an intermediate solution. I like easy things. 😉 |
Is your feature request related to a problem? Please describe.
I would like for our developers or CI to check whether a new version of a project's template is available. This way they can know whether/when they should update.
I got the idea from the
cruft check
command: https://cruft.github.io/cruft/#checking-a-project. This command checks whether the project's template is up to date. Optionally the command can exit with some errorcode != 0 for use in scripts, e.g. in CI.Does Copier maybe already offer this in some way that I overlooked?
Describe the solution you'd like
Perhaps a
copier check
command or acopier update --check
option?Describe alternatives you've considered
I am considering writing our own tool based on Copier until this becomes part of the CLI. My solution as part of Click based CLI currently looks like this:
Additional context
Thanks for the great work you guys do on Copier!
I would be willing to try my clumsy hand at a PR if we think such a feature makes sense.
The text was updated successfully, but these errors were encountered: