Giter VIP home page Giter VIP logo

Comments (7)

blakeNaccarato avatar blakeNaccarato commented on July 24, 2024

Maybe I'll set up a VSCode task in the main template that sets up copier-python-init, instead of the latter bootstrapping the former. I'm probably introducing some strange caching behavior where Copier thinks the template is one or the other.

from copier-python.

blakeNaccarato avatar blakeNaccarato commented on July 24, 2024

Okay I've done this, but it doesn't help. Now I can successfully and reliably reproduce an issue over at blakeNaccarato/copier-python-test where if I run .tools/scripts/init_template.ps1 it fails. Copier says that it has successfully copied the first-time-template files over, but it hasn't really done so. And it also tickles .gitignore despite having no reason to? Will have to look into this another time.

from copier-python.

blakeNaccarato avatar blakeNaccarato commented on July 24, 2024

A workaround is to answer all the same questions from scratch in a totally different folder for copier-python-init, then manually port over those files to the desired project.

Clearly something is going on in the copier update pathway, resulting in a "second-fiddle" template not being able to write files to the project. Perhaps this is related to copier-org/copier#429, where the template thinks it doesn't have a right to make any changes here upon updating.

Also possible that copier-org/copier#288 is tangentially related?

Something is definitely going on. A minimally reproducible example should be developed and posted as an issue upstream.

from copier-python.

blakeNaccarato avatar blakeNaccarato commented on July 24, 2024

Okay now in the commit below, the updated workflow isn't overwritten either, despite Copier output at the terminal saying "overwritten". Very strange...

blakeNaccarato/gradedoc@1b5a779

from copier-python.

blakeNaccarato avatar blakeNaccarato commented on July 24, 2024

Copying from a local copy of the repo actually copies properly. There is some breakage when updating a copier template that references a GitHub remote.

from copier-python.

blakeNaccarato avatar blakeNaccarato commented on July 24, 2024

So the files that are "created" and "updated" actually clearly do show up in the repository, but only momentarily. So I will need to run Copier in debug mode and see at which point the files are scrubbed.

from copier-python.

blakeNaccarato avatar blakeNaccarato commented on July 24, 2024

So, running copier copy gh:blakeNaccarato/copier-python . seems to always properly copy the project, whereas copier -f doesn't always properly copy it! The only downside is that you must press "Enter" repeatedly to finish bumping the template through the copier copy gh:blakeNaccarato/copier-python . approach. It will do for now.

from copier-python.

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.