Skip to content

Commit 1c44577

Browse files
authored
Use a rustv1 directory from aws-doc-sdk-examples (#3287)
## Motivation and Context This PR is a cleanup after #3115, fully switching to `rustv1` for the rust example directory in [aws-doc-sdk-examples](https://github.com/awsdocs/aws-doc-sdk-examples). ---- _By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice._
1 parent 48d1c55 commit 1c44577

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ jobs:
6565
with:
6666
repository: awsdocs/aws-doc-sdk-examples
6767
path: aws-doc-sdk-examples
68-
ref: rust-launch
6968
- name: Run ${{ matrix.actions.action }}
7069
uses: ./smithy-rs/.github/actions/docker-build
7170
with:

tools/ci-build/sdk-versioner/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ Example updating SDK examples to use SDK version 0.5.0 with Smithy version 0.35.
1212
$ sdk-versioner \
1313
--sdk-version 0.5.0 \
1414
--smithy-version 0.35.0 \
15-
path/to/aws-doc-sdk-examples/rust
15+
path/to/aws-doc-sdk-examples/rustv1
1616
```
1717

1818
Example updating SDK examples to refer to local generated code:
1919
```bash
2020
$ sdk-versioner \
2121
--sdk-path path/to/smithy-rs/aws/sdk/build/aws-sdk/sdk \
22-
path/to/aws-doc-sdk-examples/rust
22+
path/to/aws-doc-sdk-examples/rustv1
2323
```

tools/ci-scripts/generate-aws-sdk

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,7 @@ fi
2323

2424
echo -e "${C_YELLOW}Taking examples from 'awsdocs/aws-doc-sdk-examples'...${C_RESET}"
2525
examples_revision=$(cd aws-doc-sdk-examples; git rev-parse HEAD)
26-
# TODO(removeSdkExamplesDevPreview): One release after `rust_dev_preview` is renamed to `rust`, this check can be cleaned up
27-
if [[ -d "aws-doc-sdk-examples/rust" ]]; then
28-
mv aws-doc-sdk-examples/rust smithy-rs/aws/sdk/examples
29-
else
30-
mv aws-doc-sdk-examples/rust_dev_preview smithy-rs/aws/sdk/examples
31-
fi
26+
mv aws-doc-sdk-examples/rustv1 smithy-rs/aws/sdk/examples
3227
rm -rf smithy-rs/aws/sdk/examples/.cargo
3328

3429
echo -e "${C_YELLOW}Creating empty model metadata file since we don't have model update information...${C_RESET}"

0 commit comments

Comments
 (0)