-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added .git/index to the CMAKE_CONFIGURE_DEPENDS #2481
Conversation
… if the git branch or revision changes
I'm not sure that $ sha256sum .git/index
2eca1e2be4ab51c3fe1a1e3fb96fd1261b1796dbec8caaf29a7e73ba2362fbd7 .git/index
$ touch foo
$ git add foo
$ sha256sum .git/index
db2c251b4e78a8d5a4d1629ee5a011c7ba5a933ccdc7ddf3c9cccd681de4dd91 .git/index Do we want that behaviour? If it's just about branches and commits, I think we need to read # When on a branch
$ cat .git/HEAD
ref: refs/heads/dont-stop-track-on-unconfigured-passthru
$ cat .git/refs/heads/dont-stop-track-on-unconfigured-passthru
bed4a876d8f37ce11896b3b610f1a0acbe2ff0b9
# In "detached HEAD" mode
$ cat .git/HEAD
67f7cc05d564647d6534ef21ec60e5fb6fc90211 |
./git/index is just the easy solution that works. However this is actually not a full solution, because modified files are not considered to create the + prefix. Do you have an idea how to fix that? |
The problem is that the git commands are run at configure time, not build time. I could rewrite it a bit. By the way, is there a reason we don't use |
No, except that changing this will disturb our version counting. |
By the way, you can work around it by using:
The reconfiguration should be quick because most of the variables are cached. |
Yes, right. That is also an argument to just merge this. Because compared to configure every time, it does it only if the git index changes. |
@Holzhaus what do you think? Merge? |
I'm sure there a better way by adding a custom command target, but as a temporary workaround we can merge this. |
Ok, thanks. Than please merge. :-) |
… to update the version if the git branch or revision changes.
Fixes https://bugs.launchpad.net/mixxx/+bug/1861548