Giter Site home page Giter Site logo

git-version's Introduction

Hi there πŸ‘‹

  • πŸ”­ I’m currently working on node, react, aws
  • 🌱 I’m currently learning terraform
  • πŸ‘― I’m looking to collaborate on 🍺
  • πŸ€” I’m looking for help with life choices
  • πŸ’¬ Ask me about anything
  • πŸ“« How to reach me: you got this far...you'll figure it out
  • ⚑ Fun fact: πŸ€”

git-version's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

dezman dfl

git-version's Issues

How does this solve the chicken and egg problem?

I love the idea of this gem, it solves a number of important issues, and even should work with heroku.

What I don't get is how it can work with a version.txt file.

  • If it saves the file before the commit, then it doesn't know the version number to put in the file
  • If it saves the file after the commit, then the file isn't saved as part of the commit, so a push to somewhere (e.g. heroku) will not include that file, and the version.txt will be off!

How do you solve that chicken-and-egg problem?

won't boot

/Users/humblepatience/.rvm/gems/ruby-1.9.2-p290/gems/git-version-0.0.2/lib/git-version/engine.rb:3:in <class:Engine>': undefined methodisolate_namespace' for GitVersion::Engine:Class (NoMethodError)
from /Users/humblepatience/.rvm/gems/ruby-1.9.2-p290/gems/git-version-0.0.2/lib/git-version/engine.rb:2:in <module:GitVersion>' from /Users/humblepatience/.rvm/gems/ruby-1.9.2-p290/gems/git-version-0.0.2/lib/git-version/engine.rb:1:in<top (required)>'
from /Users/humblepatience/.rvm/gems/ruby-1.9.2-p290/gems/git-version-0.0.2/lib/git-version.rb:2:in require' from /Users/humblepatience/.rvm/gems/ruby-1.9.2-p290/gems/git-version-0.0.2/lib/git-version.rb:2:in<top (required)>'

Hash is wrong for Heroku approach

The resulting sha is not the commit id, from http://git-scm.com/book/en/Customizing-Git-Git-Attributes#Keyword-Expansion:

It’s important to notice that it isn’t the SHA of the commit, but of the blob itself.

I've looked around for a while and I don't have any suggestions, unfortunately. The smudge/clean filters are viable if you can control git-config everywhere, and I don't think you can do that on Heroku. export-subst could be an option if Heroku uses git-archive but it doesn't look like they do: https://devcenter.heroku.com/articles/slug-compiler (I haven't tested this.)

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.