You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prevent build stalling with overlapping projections (#2602)
## Motivation and Context
Smithy CLI runs projections concurrently, for some currently unknown
reason this causes the build to stall.
## Description
- Switch `defaultRustMetadata` in `BaseSymbolMetadataProvider` from a
`val` to a `fun`.
- Remove unused `RustType::TestModule` companion object.
## Notes
A deadlock occurs when the client/server plugins both attempt to grab
file locks. While this fixes this deadlock it is unknown whether there
still exist conditions where it can happen.
## Testing
1. Checkout
crisidev/smithy-rs-pokemon-service@d276bb9,
run `./gradlew assemble`, and observe the build halting.
2. Run the following commands to switch to this branch:
```bash
git submodule update --init --recursive --remote
cd smithy-rs
git checkout harryb/remove-build-deadlock
cd ..
./gradlew assemble
```
3. Observe the build succeeding.
0 commit comments