Repository navigation
WIP [Rust SDK] Add the Cargo workspace, Gradle integration and model crate #40508
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -46,5 +46,6 @@ python3.12-venv | |
| python3.13 | ||
| python3.13-dev | ||
| python3.13-venv | ||
| protobuf-compiler | ||
| tox | ||
| docker.io | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -92,11 +92,13 @@ if [[ -z "$IS_SNAPSHOT_VERSION" ]] ; then | |||||
| sed -i -e "s/SdkVersion = .*/SdkVersion = \"$TARGET_VERSION\"/" sdks/go/pkg/beam/core/core.go | ||||||
| sed -i -e "s/\"version\": .*/\"version\": \"$TARGET_VERSION\",/" sdks/typescript/package.json | ||||||
| sed -i -e "s/DEFAULT_BEAM_VERSION=\".*\"/DEFAULT_BEAM_VERSION=\"$TARGET_VERSION\"/" scripts/beam-sql.sh | ||||||
| sdks/rust/scripts/set_version.sh "$TARGET_VERSION" | ||||||
| else | ||||||
| # For snapshot version: | ||||||
| # Java/gradle appends -SNAPSHOT | ||||||
| # In the Gradle plugin, the -SNAPSHOT is dynamic so we don't add it here | ||||||
| # Python appends .dev | ||||||
| # Rust appends -SNAPSHOT (Cargo requires semver) | ||||||
| # The Dataflow container remains unchanged as in this case it is beam-master-<date> form | ||||||
| sed -i -e "s/version=.*/version=$TARGET_VERSION-SNAPSHOT/" gradle.properties | ||||||
| sed -i -e "s/project.version = .*/project.version = '$TARGET_VERSION'/" buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy | ||||||
|
|
@@ -105,6 +107,7 @@ else | |||||
| sed -i -e "s/SdkVersion = .*/SdkVersion = \"${TARGET_VERSION}.dev\"/" sdks/go/pkg/beam/core/core.go | ||||||
| sed -i -e "s/\"version\": .*/\"version\": \"$TARGET_VERSION-SNAPSHOT\",/" sdks/typescript/package.json | ||||||
| sed -i -e "s/DEFAULT_BEAM_VERSION=\".*\"/DEFAULT_BEAM_VERSION=\"$TARGET_VERSION\"/" scripts/beam-sql.sh | ||||||
| sdks/rust/scripts/set_version.sh "$TARGET_VERSION-SNAPSHOT" | ||||||
| fi | ||||||
|
|
||||||
| if [[ "$GIT_ADD" == yes ]] ; then | ||||||
|
|
@@ -115,4 +118,5 @@ if [[ "$GIT_ADD" == yes ]] ; then | |||||
| git add runners/google-cloud-dataflow-java/build.gradle | ||||||
| git add sdks/typescript/package.json | ||||||
| git add scripts/beam-sql.sh | ||||||
| git add 'sdks/rust/*Cargo.toml' sdks/rust/Cargo.lock | ||||||
|
prodriguezdefino marked this conversation as resolved.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟠 High: Using
Suggested change
|
||||||
| fi | ||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟡 Medium:
rustupinstalls binaries into~/.cargo/binand writes~/.cargo/env, which is not inPATHfor the remainder of the current shell session or subsequent non-login commands unless sourced. Sourcing$HOME/.cargo/env(if present) or reminding the user ensuresrustc/cargoare immediately usable.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤔