Comments (1)
For Copier, ˋnix flake initˋ is nothing more than yet another bootstrap-only templating engine. Not much different from cookiecutter or yeoman.
To be able to use the update feature of Copier, you need an impure environment with network access to clone and replay last copy, update the current one, compare them and do the smart evolution. Thus I think what you're asking is a bit over-engineered.
OTOH I agree that it'd be helpful for a template to supply an officially-supported version of Copier, just to make sure the template works fine with that Copier derivation. You can get the one from here, from flakehub or from nixpkgs and provide it as an output of your flake.
Worth it? I guess only in cases where you need extra plug-ins. For other cases you can tell your users to do something like this:
nix run github:copier-org/copier/v9.3.1 copy gl:moduon/precommix .
And from that moment, you'll be able to update with:
nix run github:copier-org/copier/v9.3.1 update
With a couple extra lines of nix code in your flake, you could provide this interface:
nix run gitlab:moduon/precommix#copy
nix run gitlab:moduon/precommix#update
So IMHO there's not much left for Copier to do in this regard. Just adapt to your needs 😊
from copier.
Related Issues (20)
- Inconsistent `update` behavior when a generated file was deleted HOT 5
- Exclude on update HOT 10
- Conditional argument ignored when updating HOT 5
- Bool argument is handled as string in 'recopy' operation HOT 4
- Allow source argument for update HOT 4
- Files no longer update if user deletes them. HOT 12
- Add the ability to (git) merge files when executing different templates
- Custom _answers_file value is not taken into account for update and recopy HOT 2
- Support Base Gitlab URL override HOT 7
- [Windows] `copier update .` can't find the parent template despite _src_path being defined HOT 4
- Skip validation flag HOT 4
- Support dynamic choices HOT 3
- Allow copier templates to be in subdirectories of repositories HOT 4
- Copier freezing during update HOT 3
- `placeholder` with no `default` does not force the user to answer HOT 3
- Conditional messages for before/after copy/update HOT 5
- Questions are cropped, not wrapped, if the terminal is not wide enough HOT 2
- Changing case in template breaks update (e.g. "Populate" -> "populate") HOT 3
- ProcessExecutionError when a file is un-ignored across template versions HOT 1
- Inconsistent validator behavior between `copier {copy,recopy}` and `copier update` for computed values HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from copier.