Skip to content

Preserve version string in Cargo.toml on automatic dependency bump#672

Merged
Shaptic merged 3 commits intomainfrom
better-dep-bump
Apr 7, 2026
Merged

Preserve version string in Cargo.toml on automatic dependency bump#672
Shaptic merged 3 commits intomainfrom
better-dep-bump

Conversation

@Shaptic
Copy link
Copy Markdown
Contributor

@Shaptic Shaptic commented Apr 7, 2026

See #671. Instead of

[workspace.dependencies.soroban-env-host-curr]
package = "soroban-env-host"
-version = "=26.0.1"
+git = "https://github.com/stellar/rs-soroban-env"
+rev = "c0e58f94ff2983a09440cef6a54253349fd3c4db"

we will now have

[workspace.dependencies.soroban-env-host-curr]
package = "soroban-env-host"
-version = "=26.0.1"
+version = "=26.1.2"
+git = "https://github.com/stellar/rs-soroban-env"
+rev = "c0e58f94ff2983a09440cef6a54253349fd3c4db"

Copilot AI review requested due to automatic review settings April 7, 2026 21:37
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the scripts/update-soroban-env.sh automation so that when bumping soroban-env dependencies to a git rev, the corresponding version = "...“ constraint in Cargo.toml is preserved/updated (rather than being removed), matching the workflow described in #671.

Changes:

  • After cargo update, re-reads the resolved soroban-env-host and soroban-simulation versions from Cargo.lock.
  • Writes those resolved versions back into Cargo.toml as pinned =... version strings for the *-curr workspace dependencies.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread scripts/update-soroban-env.sh Outdated
Shaptic and others added 2 commits April 7, 2026 14:43
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@Shaptic Shaptic enabled auto-merge (squash) April 7, 2026 21:52
@Shaptic Shaptic merged commit bbbb65f into main Apr 7, 2026
17 checks passed
@Shaptic Shaptic deleted the better-dep-bump branch April 7, 2026 22:40
karthikiyer56 added a commit that referenced this pull request Apr 9, 2026
* Bump soroban-env to next protocol version (#595)

* Bump soroban-env to next protocol version
* Add required config key to mocked ledger entries
* Integrate unstable-next-api into curr (dropped arg)

* Bump soroban-env SHA to latest (#611)

* Update XDR and Core runs to test P26 integration (#629)

* Split the single core_version input into core_deb_version and core_docker_img to accommodate differences.
* Bump Core versions for P25 and add P26 run
* Bump Golang to 1.25 and linter to be compatible
* Bumped soroban-env-host curr to latest commit SHA in repo
* Bumped Go SDK to latest @protocol-next
* Added P26 limits from quickstart and removed P24 limits

* Bump crate dependencies to latest Protocol 26 versions (#640)

* Remove unimplemented GitHub Action (#643)

Snuck in with a `git add -A` on accident

* Bump Core to Protocol 26 release candidate (#642)

* Bump Core to p26 release candidate
* Bump Go SDK version to latest
* Bump to official patched env

* Ensure we strip NUL bytes before `CString::new` (#632)

* Fix deluge of linter complaints on branch merge (#646)

* Release v26.0.0 (#647)

* Tag off changelog for major release
* Bump Go SDK to official P26 version
* Bump CI to latest stable core for a final run

* Add GHA to automatically update soroban-env on protocol-next (#645)

* Preserve version string in Cargo.toml on automatic dependency bump (#672)

* Preserve version= in Cargo.toml on bump
* Simplify code: use a function, better names

* Bump to soroban-env to latest version (#673)

---------

Co-authored-by: George <Shaptic@users.noreply.github.com>
Co-authored-by: Siddharth Suresh <siddharth@stellar.org>
Co-authored-by: George <george@stellar.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants