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

support zip template from local or http endpoint #1566

Open
tianzhipeng-git opened this issue Mar 27, 2024 · 5 comments
Open

support zip template from local or http endpoint #1566

tianzhipeng-git opened this issue Mar 27, 2024 · 5 comments

Comments

@tianzhipeng-git
Copy link

Actual Situation

We have lots of copier template, we don't want to create git repo for each one.

We want to put all template code in a single repo, and during the ci/cd, we archive and upload these templates to some http file services such as Nginx.

Desired Situation

support zip template from local or http endpoint

Proposed solution

support zip template from local or http endpoint:
copier copy http://somedomain.com/my_template.zip target_dir

@tianzhipeng-git
Copy link
Author

create a simple PR for this feature #1565

@pawamoy
Copy link
Contributor

pawamoy commented Mar 27, 2024

If I understand correctly, generating a project from a ZIP template means that the project cannot use copier update 🤔 You don't use the update feature of Copier?

@tianzhipeng-git
Copy link
Author

If I understand correctly, generating a project from a ZIP template means that the project cannot use copier update 🤔 You don't use the update feature of Copier?

Sure, I don't use the update feature of Copier for now, I will check how update works

@pawamoy
Copy link
Contributor

pawamoy commented Mar 28, 2024

The update feature is a core aspect of Copier, so we're likely not interested in implementing features that work against it. Please check it out and let us know if you still need to support URLs to ZIP files (which by the way is easily automated with a wrapper script).

@yajo
Copy link
Member

yajo commented Apr 7, 2024

FWIW Copier supports git bundles out of the box, including updates support (if bundled with replayable history).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants