question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

git_version.py uses 'git describe --exclude' which is not available in git 2.11.0

See original GitHub issue

system info

Image file:         ev3dev-stretch-ev3-generic-2018-12-14
Kernel version:     4.14.117-ev3dev-2.3.4-ev3
Brickman:           0.10.2
BogoMIPS:           148.88
Bluetooth:          
Board:              board0
BOARD_INFO_HW_REV=7
BOARD_INFO_MODEL=LEGO MINDSTORMS EV3
BOARD_INFO_ROM_REV=6
BOARD_INFO_SERIAL_NUM=0016533F8FD1
BOARD_INFO_TYPE=main

sudo python3 setup.py install fails due to

robot@ev3dev:~/ev3dev-lang-python$ sudo python3 setup.py install
Traceback (most recent call last):
  File "setup.py", line 11, in <module>
    version=git_version(),
  File "/home/robot/ev3dev-lang-python/git_version.py", line 67, in git_version
    raise ValueError("Cannot find the version number!")
ValueError: Cannot find the version number!

This is happening because git describe no longer supports the --exclude option

robot@ev3dev:~/ev3dev-lang-python$ git describe --exclude ev3dev-* --abbrev=4
error: unknown option `exclude'
usage: git describe [<options>] [<commit-ish>...]
   or: git describe [<options>] --dirty

    --contains            find the tag that comes after the commit
    --debug               debug search strategy on stderr
    --all                 use any ref
    --tags                use any tag, even unannotated
    --long                always use long format
    --first-parent        only follow first parent
    --abbrev[=<n>]        use <n> digits to display SHA-1s
    --exact-match         only output exact matches
    --candidates <n>      consider <n> most recent tags (default: 10)
    --match <pattern>     only consider tags matching <pattern>
    --always              show abbreviated commit object as fallback
    --dirty[=<mark>]      append <mark> on dirty working tree (default: "-dirty")

robot@ev3dev:~/ev3dev-lang-python$ 

We need to update git_version.py to not use the --exclude option

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:14 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
dlechcommented, Dec 31, 2019

It is filtering out the debian package tags.

2reactions
ddemidovcommented, Dec 31, 2019

git describe --match <pattern> was there before exclude. Would it be possible to use it with a negative regex pattern?

Read more comments on GitHub >

github_iconTop Results From Across the Web

git version relative to a specific tag - Stack Overflow
If an exact match was not found, git describe will walk back through the commit history to locate an ancestor commit which has...
Read more >
Git - git Documentation
Treat the repository as a bare repository. If GIT_DIR environment is not set, it is set to the current working directory. --no-replace-objects. Do...
Read more >
Diff - pub/scm/git/git - Git repositories on kernel
Merge branch 'nd/shallow-deepen' The existing "git fetch --depth=<n>" option was hard to use correctly when making the history of an existing shallow clone ......
Read more >
https://src.fedoraproject.org/rpms/git/raw/f29/f/g...
The git rpm installs common set of tools which are usually using with small amount ... %else # Remove contrib/fast-import/import-zips.py, contrib/hg-to-git, ...
Read more >
simple-git - npm
Simple GIT interface for node.js. Latest version: 3.15.1, last published: 22 days ago. Start using simple-git in your project by running ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found