Giter Site home page Giter Site logo

Comments (1)

yajo avatar yajo commented on September 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.