-
Notifications
You must be signed in to change notification settings - Fork 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
Trino can't build from a git worktree #18027
Comments
cc also @wendigo as FYI since you did the version upgrade of the plugin in airbase |
+ <dotGitDirectory>${project.basedir}/../../../.git</dotGitDirectory> Well, the number of |
But in general, any number of horrible hacks is justified if there's no other way and we clearly mark it as technical debt to be paid off later. |
I'd prefer to fix the plugin rather then hack the usage in Trino |
Me too, but look how that's going for the original issue :) |
@ksobolew This did seem to work (my build completed successfully), but I also was not expecting it to. Perhaps I got lucky about which modules are actually using this plugin, or something like that? Not sure. In any case I discovered Line 315 in 8217bb3
|
A while ago a change was made (6a63d25) to change the
git-commit-id-maven-plugin
, pulled from https://github.com/airlift/airbase, to use the native git implementation to work around an issue where thejGit
implementation used by the plugin is incompatible with git worktrees (git-commit-id/git-commit-id-maven-plugin#215). This worked fine up until recently whenairbase
was upgraded from 139 to 141 (f769e9d). As part of this, the version ofgit-commit-id-maven-plugin
was changed from 5.0.0 to 6.0.0 (airlift/airbase#359), which introduced the issue described in git-commit-id/git-commit-id-maven-plugin#639 where the native git workaround doesn't work out of the box, because the working directory for git commands is incorrectly detected in a worktree environment. It's possible to work around this by explicitly adjusting the.git
directory used by the plugin:That workaround seems to work okay even when Trino is checked out without a worktree, but it's quite a hack, so I'd like to see if anyone has better ideas before opening a PR for it.
The text was updated successfully, but these errors were encountered: