This repository has been archived by the owner on Jun 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use git URL for normal cargo build, and vendored file path for Nix bu…
…ild (#155) * Use git dependency by default in Cargo * Remove git submodule * Patch Cargo.toml and Cargo.lock files inside Nix * Configure auth token instead of submodule on CI * Use cp instead of cat in copying file
- Loading branch information
1 parent
5a67e4b
commit 00e8d18
Showing
8 changed files
with
167 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
|
||
[patch.crates-io] | ||
|
||
sov-ibc = { path = "modules/sov-ibc" } | ||
|
@@ -21,17 +20,79 @@ ibc-testkit = { git = "https://github.com/cosmos/ibc-rs.git" | |
basecoin = { git = "https://github.com/informalsystems/basecoin-rs.git", rev = "61256f9" } | ||
jmt = { git = "https://github.com/penumbra-zone/jmt.git", rev = "1d007e11cb68aa5ca13e9a5af4a12e6439d5f7b6" } | ||
|
||
sov-modules-api = { path = "vendor/sovereign-sdk/module-system/sov-modules-api" } | ||
sov-state = { path = "vendor/sovereign-sdk/module-system/sov-state" } | ||
sov-bank = { path = "vendor/sovereign-sdk/module-system/module-implementations/sov-bank" } | ||
sov-sequencer-registry = { path = "vendor/sovereign-sdk/module-system/module-implementations/sov-sequencer-registry" } | ||
sov-db = { path = "vendor/sovereign-sdk/full-node/sov-db" } | ||
sov-rollup-interface = { path = "vendor/sovereign-sdk/rollup-interface" } | ||
sov-mock-zkvm = { path = "vendor/sovereign-sdk/adapters/mock-zkvm" } | ||
sov-prover-storage-manager = { path = "vendor/sovereign-sdk/full-node/sov-prover-storage-manager" } | ||
sov-kernels = { path = "vendor/sovereign-sdk/module-system/sov-kernels" } | ||
sov-modules-core = { path = "vendor/sovereign-sdk/module-system/sov-modules-core" } | ||
sov-celestia-adapter = { path = "vendor/sovereign-sdk/adapters/celestia" } | ||
sov-mock-da = { path = "vendor/sovereign-sdk/adapters/mock-da" } | ||
const-rollup-config = { path = "vendor/sovereign-sdk/examples/const-rollup-config" } | ||
sov-chain-state = { path = "vendor/sovereign-sdk/module-system/module-implementations/sov-chain-state" } | ||
|
||
# The sovereign-sdk patches are specified in two modes. | ||
# In the normal mode, the uncommented git URLs would allow Cargo to fetch from sovereign-sdk private git repository. | ||
# In Nix mode, the git lines are commented, and the path lines are uncommented, to fetch sovereign-sdk | ||
# modules from a local vendor file path. | ||
# As a result, _both_ git and path entries for each sovereign-sdk module is required, with the path section commented. | ||
|
||
[patch.crates-io.sov-modules-api] | ||
# path = "vendor/sovereign-sdk/module-system/sov-modules-api" | ||
git = "ssh://[email protected]/informalsystems/sovereign-sdk-wip.git" | ||
rev = "63fa5f11" | ||
|
||
[patch.crates-io.sov-state] | ||
# path = "vendor/sovereign-sdk/module-system/sov-state" | ||
git = "ssh://[email protected]/informalsystems/sovereign-sdk-wip.git" | ||
rev = "63fa5f11" | ||
|
||
[patch.crates-io.sov-bank] | ||
# path = "vendor/sovereign-sdk/module-system/module-implementations/sov-bank" | ||
git = "ssh://[email protected]/informalsystems/sovereign-sdk-wip.git" | ||
rev = "63fa5f11" | ||
|
||
[patch.crates-io.sov-sequencer-registry] | ||
# path = "vendor/sovereign-sdk/module-system/module-implementations/sov-sequencer-registry" | ||
git = "ssh://[email protected]/informalsystems/sovereign-sdk-wip.git" | ||
rev = "63fa5f11" | ||
|
||
[patch.crates-io.sov-db] | ||
# path = "vendor/sovereign-sdk/full-node/sov-db" | ||
git = "ssh://[email protected]/informalsystems/sovereign-sdk-wip.git" | ||
rev = "63fa5f11" | ||
|
||
[patch.crates-io.sov-rollup-interface] | ||
# path = "vendor/sovereign-sdk/rollup-interface" | ||
git = "ssh://[email protected]/informalsystems/sovereign-sdk-wip.git" | ||
rev = "63fa5f11" | ||
|
||
[patch.crates-io.sov-mock-zkvm] | ||
# path = "vendor/sovereign-sdk/adapters/mock-zkvm" | ||
git = "ssh://[email protected]/informalsystems/sovereign-sdk-wip.git" | ||
rev = "63fa5f11" | ||
|
||
[patch.crates-io.sov-prover-storage-manager] | ||
# path = "vendor/sovereign-sdk/full-node/sov-prover-storage-manager" | ||
git = "ssh://[email protected]/informalsystems/sovereign-sdk-wip.git" | ||
rev = "63fa5f11" | ||
|
||
[patch.crates-io.sov-kernels] | ||
# path = "vendor/sovereign-sdk/module-system/sov-kernels" | ||
git = "ssh://[email protected]/informalsystems/sovereign-sdk-wip.git" | ||
rev = "63fa5f11" | ||
|
||
[patch.crates-io.sov-modules-core] | ||
# path = "vendor/sovereign-sdk/module-system/sov-modules-core" | ||
git = "ssh://[email protected]/informalsystems/sovereign-sdk-wip.git" | ||
rev = "63fa5f11" | ||
|
||
[patch.crates-io.sov-celestia-adapter] | ||
# path = "vendor/sovereign-sdk/adapters/celestia" | ||
git = "ssh://[email protected]/informalsystems/sovereign-sdk-wip.git" | ||
rev = "63fa5f11" | ||
|
||
[patch.crates-io.sov-mock-da] | ||
# path = "vendor/sovereign-sdk/adapters/mock-da" | ||
git = "ssh://[email protected]/informalsystems/sovereign-sdk-wip.git" | ||
rev = "63fa5f11" | ||
|
||
[patch.crates-io.const-rollup-config] | ||
# path = "vendor/sovereign-sdk/examples/const-rollup-config" | ||
git = "ssh://[email protected]/informalsystems/sovereign-sdk-wip.git" | ||
rev = "63fa5f11" | ||
|
||
[patch.crates-io.sov-chain-state] | ||
# path = "vendor/sovereign-sdk/module-system/module-implementations/sov-chain-state" | ||
git = "ssh://[email protected]/informalsystems/sovereign-sdk-wip.git" | ||
rev = "63fa5f11" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,9 +22,11 @@ jobs: | |
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
token: ${{ secrets.AUTH_TOKEN }} | ||
- name: Set up Git credentials for private repo | ||
run: | | ||
git config --global --replace-all \ | ||
"url.https://${{ secrets.AUTH_TOKEN }}@github.com.insteadOf" \ | ||
ssh://[email protected] | ||
- uses: cachix/install-nix-action@v26 | ||
with: | ||
extra_nix_config: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,9 +26,11 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
token: ${{ secrets.AUTH_TOKEN }} | ||
- name: Set up Git credentials for private repo | ||
run: | | ||
git config --global --replace-all \ | ||
"url.https://${{ secrets.AUTH_TOKEN }}@github.com.insteadOf" \ | ||
ssh://[email protected] | ||
- name: Cache dependencies | ||
uses: Swatinem/rust-cache@v2 | ||
- name: Install cargo-risczero | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,9 +55,11 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
token: ${{ secrets.AUTH_TOKEN }} | ||
- name: Set up Git credentials for private repo | ||
run: | | ||
git config --global --replace-all \ | ||
"url.https://${{ secrets.AUTH_TOKEN }}@github.com.insteadOf" \ | ||
ssh://[email protected] | ||
- uses: arduino/setup-protoc@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
|
@@ -75,9 +77,11 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
token: ${{ secrets.AUTH_TOKEN }} | ||
- name: Set up Git credentials for private repo | ||
run: | | ||
git config --global --replace-all \ | ||
"url.https://${{ secrets.AUTH_TOKEN }}@github.com.insteadOf" \ | ||
ssh://[email protected] | ||
- uses: arduino/setup-protoc@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
|
@@ -93,9 +97,11 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
token: ${{ secrets.AUTH_TOKEN }} | ||
- name: Set up Git credentials for private repo | ||
run: | | ||
git config --global --replace-all \ | ||
"url.https://${{ secrets.AUTH_TOKEN }}@github.com.insteadOf" \ | ||
ssh://[email protected] | ||
- uses: arduino/setup-protoc@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
|
@@ -112,9 +118,11 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
token: ${{ secrets.AUTH_TOKEN }} | ||
- name: Set up Git credentials for private repo | ||
run: | | ||
git config --global --replace-all \ | ||
"url.https://${{ secrets.AUTH_TOKEN }}@github.com.insteadOf" \ | ||
ssh://[email protected] | ||
- uses: arduino/setup-protoc@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
|
@@ -132,9 +140,11 @@ jobs: | |
timeout-minutes: 30 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
token: ${{ secrets.AUTH_TOKEN }} | ||
- name: Set up Git credentials for private repo | ||
run: | | ||
git config --global --replace-all \ | ||
"url.https://${{ secrets.AUTH_TOKEN }}@github.com.insteadOf" \ | ||
ssh://[email protected] | ||
- uses: arduino/setup-protoc@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
|
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.