Giter VIP home page Giter VIP logo

Comments (3)

antonbabenko avatar antonbabenko commented on July 18, 2024

My reasoning for making it using comments was that not everybody wants to overwrite the whole README.md but rather put it into specified section of that file.

Later we may have a possibility to specify which file to update instead of README.md as now.

Regarding the issue with sed... unexpected EOF. It is happening not because a comment tag was not found, but because sed command does not work on all platforms equally well (I tested it with brew'ed sed on Mac). The most platform agnostic way seems to be using Perl (#15).

I will keep this issue posted when a new pre-commit hook is released (during today or tomorrow).

from pre-commit-terraform.

antonbabenko avatar antonbabenko commented on July 18, 2024

v1.7.2 is using Perl and keeps a temporary file in a temporary directory.

Please give it a try and let us know how it goes.

from pre-commit-terraform.

BennyHarv3 avatar BennyHarv3 commented on July 18, 2024

v1.7.3 at least got me past this error. I wanted all of the documentation in main.tf to overwrite the README.md. The hook doesn't actually write the README contents like #7 asks for still, but this could probably be closed.

from pre-commit-terraform.

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.