-
Notifications
You must be signed in to change notification settings - Fork 20
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
feat: use git-version
instead of git2
#173
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for looking into this.
const PROTO_ROOT: &str = "substrait/proto"; | ||
const TEXT_ROOT: &str = "substrait/text"; | ||
const GEN_ROOT: &str = "gen"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a good idea to mark that the code is generated
Ah, this doesn't seem to be working quite right. I get an error using the released build (because
|
Hm, it should use the provided |
Ah, it seems |
Ah, nevermind, |
I'll try to create a patch for the upstream crate. |
Thanks. I think the problem is that, with this kind of failure, |
Yes, I was considering the same, but then I figured we can probably be pragmatic here: #175. |
Same idea as #173, except this directly calls `git describe` at build time (when there is a submodule).
An alternative approach for #172. This replaces the
git2
dependency withgit-version
which uses thegit
binary directly at compile time. This means that:For dev builds, needs
git
binary:gen
folder.For packaged builds (substrait is not included as a git submodule, see
Cargo.toml
includes), don't need agit
binary:gen
folder: the build script skips the version generation part