mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-11-26 13:56:27 +00:00
Use my patched verson of git2-rs
Now, the Vagrant VM uses my patched version of git2-rs, which has a modified build.rs file in libgit2-sys, which blocks libhttp_parser from being linked. As you can see by the comment, I’m not a fan of the fix, but at least it works, right? See #194, and also #255.
This commit is contained in:
parent
414b347ae5
commit
3405db1f4b
19
Vagrantfile
vendored
19
Vagrantfile
vendored
@ -95,6 +95,25 @@ Vagrant.configure(2) do |config|
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
|
||||||
|
# Download my patched version of git2-rs.
|
||||||
|
# This is basically a hack and we should get rid of it as soon as
|
||||||
|
# a better solution comes along.
|
||||||
|
# See https://github.com/ogham/exa/issues/194
|
||||||
|
config.vm.provision :shell, privileged: false, inline: <<-EOF
|
||||||
|
set -xe
|
||||||
|
git clone https://github.com/ogham/git2-rs.git /home/ubuntu/git2-rs
|
||||||
|
mkdir -p /home/ubuntu/.cargo
|
||||||
|
echo 'paths = ["/home/ubuntu/git2-rs/libgit2-sys"]' > /home/ubuntu/.cargo/config
|
||||||
|
EOF
|
||||||
|
|
||||||
|
# This fix is applied by changing the VM rather than changing the
|
||||||
|
# Cargo.toml file so it works for everyone because it’s such a niche
|
||||||
|
# build issue, it’s not worth specifying a non-crates.io dependency
|
||||||
|
# and losing the ability to `cargo publish` the exa crate there!
|
||||||
|
# It also isolates the hackiness to the one place I can test it
|
||||||
|
# actually works.
|
||||||
|
|
||||||
|
|
||||||
# Write some welcoming text.
|
# Write some welcoming text.
|
||||||
config.vm.provision :shell, privileged: true, inline: <<-EOF
|
config.vm.provision :shell, privileged: true, inline: <<-EOF
|
||||||
rm -f /etc/update-motd.d/*
|
rm -f /etc/update-motd.d/*
|
||||||
|
Loading…
Reference in New Issue
Block a user