Skip to content
Unverified Commit 79873748 authored by Deven T. Corzine's avatar Deven T. Corzine Committed by GitHub
Browse files

Fix registerGenerateCargoWorkspaceTask() to declare the output file. (#3954)

## Motivation and Context
When I tried to build the main branch with `./gradlew assemble`, I got
the following error. This commit fixes the problem.
```
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':aws:sdk-adhoc-test:generateCargoWorkspace'.
> java.io.FileNotFoundException: /home/deven/git/smithy-rs/aws/sdk-adhoc-test/build/smithyprojections/sdk-adhoc-test/Cargo.toml (No such file or directory)
```

## Description
Fixes `registerGenerateCargoWorkspaceTask()` to declare the output file
correctly when creating the `Cargo.toml` file, so Gradle can track the
dependencies properly.

## Testing
Without this change, `./gradlew clean; ./gradlew assemble` failed every
time. With this change, it works.

## Checklist

----

_By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice._
parent 6cc3ed7d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment