Skip to content
Snippets Groups Projects
Commit 46b3a99f authored by Yaroslav Dynnikov's avatar Yaroslav Dynnikov
Browse files

fix: eliminate git from build deps

It's impossible to build picodata with packpack - it removes the `.git`
directory from the build environment. The git is only necessary for
applying tarantool patches, but `patch -p1` can be used for that
instead.
parent 1f25fdac
No related branches found
No related tags found
1 merge request!171fix: eliminate git from build deps
Pipeline #8998 passed
......@@ -25,17 +25,20 @@ fn patch_tarantool() {
.collect::<Vec<_>>();
patches.sort();
let status = std::process::Command::new("git")
.current_dir("tarantool-sys")
.arg("apply")
.arg("--3way")
.arg("--index")
.args(patches)
.status()
.expect("git couldn't be executed");
for patch in &patches {
dbg!(patch);
let status = std::process::Command::new("patch")
.current_dir("tarantool-sys")
.arg("--forward")
.arg("-p1")
.arg("-i")
.arg(patch)
.status()
.expect("`patch` couldn't be executed");
if !status.success() {
panic!("failed to apply tarantool patches")
if !status.success() {
panic!("failed to apply tarantool patches")
}
}
let _ = std::fs::File::create(&patch_check)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment