forked from project-oak/oak
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix micro_rpc cross workspace dependency
Add a manual test to check regressions in the future. Ref project-oak#4573
- Loading branch information
Showing
7 changed files
with
37 additions
and
6 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[env] | ||
WORKSPACE_ROOT = { value = "_invalid_workspace_root_" } |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[package] | ||
name = "micro_rpc_workspace_test" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
[dependencies] | ||
micro_rpc = { path = "../micro_rpc" } |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
This directory contains a manual test to check whether the `micro_rpc` crate can | ||
be depended on from a crate in another workspace. | ||
|
||
See https://github.com/project-oak/oak/issues/4573 for context. | ||
|
||
This crate overwrites the `WORKSPACE_ROOT` env variable with an invalid value in | ||
the `.cargo/config.toml` file, which is necessary to shadow the corresponding | ||
one in the root of this repository, to simulate an external workspace that would | ||
not have that env variable set. | ||
|
||
To reproduce the issue, run the following command from the repository root: | ||
|
||
```bash | ||
env --chdir=./micro_rpc_workspace_test bash -c 'cargo clean && cargo build' | ||
``` |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
fn main() { | ||
println!("Hello, world!"); | ||
} |