Skip to content

Commit

Permalink
sync-protobuf.sh: consolidate git cache
Browse files Browse the repository at this point in the history
Use a single distinctive subdirectory under ~/.cache to house all
checkouts for the build script, as per the XDG convention.
  • Loading branch information
mzabaluev committed Feb 6, 2024
1 parent d4c75da commit 888ebc5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/sync-protobuf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ set -eou pipefail
# repositories over and over again every time
# the script is called.

CACHE_PATH="${XDG_CACHE_HOME:-$HOME/.cache}"
COSMOS_SDK_GIT="${COSMOS_SDK_GIT:-$CACHE_PATH/cosmos/cosmos-sdk.git}"
CACHE_PATH="${XDG_CACHE_HOME:-$HOME/.cache/ibc-proto-rs-build}"
COSMOS_SDK_GIT="${COSMOS_SDK_GIT:-$CACHE_PATH/cosmos-sdk.git}"
IBC_GO_GIT="${IBC_GO_GIT:-$CACHE_PATH/ibc-go.git}"
COSMOS_ICS_GIT="${COSMOS_ICS_GIT:-$CACHE_PATH/cosmos/interchain-security.git}"
NFT_TRANSFER_GIT="${NFT_TRANSFER_GIT:-$CACHE_PATH/bianjieai/nft-transfer.git}"
COSMOS_ICS_GIT="${COSMOS_ICS_GIT:-$CACHE_PATH/interchain-security.git}"
NFT_TRANSFER_GIT="${NFT_TRANSFER_GIT:-$CACHE_PATH/nft-transfer.git}"

COSMOS_SDK_COMMIT="$(cat src/COSMOS_SDK_COMMIT)"
IBC_GO_COMMIT="$(cat src/IBC_GO_COMMIT)"
Expand Down

0 comments on commit 888ebc5

Please sign in to comment.