osmosis-labs / osmosis-rust

Rust libraries for osmosis
Apache License 2.0
59 stars 52 forks source link

Download dependencies repo archive instead of git submodule sync #95

Closed iboss-ptk closed 10 months ago

iboss-ptk commented 10 months ago

download archive directly instead of git submodule sync to reduce sync time when building fresh.

It also remove complication in build script where it needs to handle stale data.

To check revision cache (potentially having local .lock file in dependency to check if we should download code or not)

curl -L \
  -H "Accept: application/vnd.github+json" \
  -H "X-GitHub-Api-Version: 2022-11-28" \
  https://api.github.com/repos/osmosis-labs/osmosis/commits/v19.2.0

To download tarball

curl -L -o osmosis.tar \
  -H "Accept: application/vnd.github+json" \
  -H "X-GitHub-Api-Version: 2022-11-28" \
  https://api.github.com/repos/osmosis-labs/osmosis/tarball/main
iboss-ptk commented 10 months ago

Not doing, since it's actually slow down the process.