Giter Club home page Giter Club logo

arpa2cm's People

Contributors

adriaandegroot avatar hfmanson avatar tonytheodore avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

arpa2cm's Issues

git without any version worse than no git

Slightly inconvenient: A fresh git repo, without version tags, will not use the _default but place rather awful strings in the version. Easily fixed, but perhaps worth noting.

Not finding git version with out-of-tree build

When trying to establish the version from Git, the ARPA2CM module:

  • produces the right version in a subtree from the source (like ./build)
  • claims not to be in a Git repository during builds outside the source tree (like /tmp/build)

To reproduce (output shown below):

  • pull in the repository: git clone https://github.com/vanrein/perpetuum
  • change into the directory and branch: cd perpetuum ; git checkout arpa2cm
  • Properly tag a version: git tag version-0.9-0 version-0.9.0
  • run cmake in a subdirectory of the source like ./build: mkdir build ; cd build ; cmake ..
  • run cmake in another directory like /tmp/build: mkdir /tmp/build ; cd /tmp/build ; cmake /path/to/perpetuum

Surprisingly, the added commands in the project's CMakeLists.txt do seem to work in both cases, and recover the git tag. This is all the more astounding because the Git version retriever does change to ${CMAKE_CURRENT_SOURCE_DIR} first.

The first test produces:

-- Looking for git-versioning information.
running /usr/local/bin/git diff --quiet  2>&1
  Got version 0.9.0-8-gbcb63c1
-- Found program version 0.9.0-8-gbcb63c1
-- Git is /usr/local/bin/git
-- Git was tested: version-0.9-0-8-gbcb63c1

The second test produces:

-- Looking for git-versioning information.
running /usr/local/bin/git diff --quiet  2>&1
Not a git repository
To compare two paths outside a working tree:
usage: git diff [--no-index] <path> <path>
  Git reports local changes, fixing patch level to local-20180203-164603
  Got version fatal: Not a git repository (or any of the parent directories): .git.fatal: Not a git repository (or any of the parent directories): .git.local-20180203-164603
-- Found program version fatal: Not a git repository (or any of the parent directories): .git.fatal: Not a git repository (or any of the parent directories): .git.local-20180203-164603
-- Git is /usr/local/bin/git
-- Git was tested: version-0.9-0-8-gbcb63c1

I am stymned... without a clue of what could be wrong. Help?

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.