To set up relative paths for a particular checkout of libsignal-ffi,
run the following series of commands:
echo 'Cargo.toml filter=local-deps' >> .git/info/attributes
git config filter.local-deps.smudge \
'sed -E -e "s|{ *git *= *\"ssh://git@github\.com/signalapp/(.+)\.git\" *}|{ path = \"../\1\" } # local-deps: &|"'
git config filter.local-deps.clean \
'sed -E -e "s|{.+} # local-deps: {(.+)}|{\1}|"'
This will replace any dependencies on GitHub repositories under the
signalapp organization with path dependencies in the parent folder.
The checkout must be named the same as the repo on GitHub.
|
||
|---|---|---|
| .. | ||
| main.yml | ||