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

Is it possible to support private additions? #368

Open
abelsiqueira opened this issue Jul 13, 2024 · 1 comment
Open

Is it possible to support private additions? #368

abelsiqueira opened this issue Jul 13, 2024 · 1 comment
Labels
help wanted Extra attention is needed investigation The issue requires investigation to define a closing action (not to be mistaken with needs more info

Comments

@abelsiqueira
Copy link
Collaborator

Description

Question by @xvries. We should discuss the use case and how it could be done.

@abelsiqueira abelsiqueira added help wanted Extra attention is needed investigation The issue requires investigation to define a closing action (not to be mistaken with needs more info labels Jul 23, 2024
@abelsiqueira
Copy link
Collaborator Author

Apparently, it should be easy to support private additions, by just having a separate copier template and generating answers in a separate file than .copier-answers.yml (which is the default).
Information: https://copier.readthedocs.io/en/stable/configuring/#applying-multiple-templates-to-the-same-subproject

I think it requires using the Copier interface via Bestie or the python copier CLI directly. I'm guessing something like this should be the way:

using BestieTemplate
BestieTemplate.generate("MyPkg.jl")
BestieTemplate.Copier.copy("https://private.git.repo/template", "MyPkg.jl", answers_file=".copier-answers.private.yml")

@dpo @tmigot might be relevant for JSO specific things

@pat-alt maybe this is relevant to what you wanted to do?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed investigation The issue requires investigation to define a closing action (not to be mistaken with needs more info
Projects
None yet
Development

No branches or pull requests

1 participant