Skip to content

Pin near-openapi-client and near-openapi-types to v0.8.0 commit hash#132

Merged
r-near merged 3 commits intochore/upgrade-openapi-client-v0.8from
copilot/sub-pr-130
Mar 4, 2026
Merged

Pin near-openapi-client and near-openapi-types to v0.8.0 commit hash#132
r-near merged 3 commits intochore/upgrade-openapi-client-v0.8from
copilot/sub-pr-130

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 4, 2026

Git dependencies without a tag/rev/branch resolve to the default branch tip, making builds non-reproducible and susceptible to unexpected breaking changes.

Changes

  • Cargo.toml: Pin both near-openapi-client and near-openapi-types to the v0.8.0 release commit hash using rev =
near-openapi-client = { git = "https://github.com/near/near-openapi-client-rs.git", rev = "0b9c46786934edd274a0ae91ab42c13516f50965" }
near-openapi-types  = { git = "https://github.com/near/near-openapi-client-rs.git", rev = "0b9c46786934edd274a0ae91ab42c13516f50965" }

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: r-near <163825889+r-near@users.noreply.github.com>
Copilot AI changed the title [WIP] Address feedback on upgrading near-openapi-client to v0.8.0 Pin near-openapi-client and near-openapi-types to v0.8.0 tag Mar 4, 2026
@r-near
Copy link
Copy Markdown
Contributor

r-near commented Mar 4, 2026

@copilot I think it's better to pin to a commit hash

…hash

Co-authored-by: r-near <163825889+r-near@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Mar 4, 2026

@copilot I think it's better to pin to a commit hash

Done in 4f13efa — both dependencies are now pinned to the v0.8.0 release commit hash (0b9c46786934edd274a0ae91ab42c13516f50965).

Copilot AI changed the title Pin near-openapi-client and near-openapi-types to v0.8.0 tag Pin near-openapi-client and near-openapi-types to v0.8.0 commit hash Mar 4, 2026
@r-near r-near marked this pull request as ready for review March 4, 2026 21:00
@r-near r-near requested review from a team and akorchyn as code owners March 4, 2026 21:00
Copilot AI review requested due to automatic review settings March 4, 2026 21:00
@r-near r-near merged commit 2c321ad into chore/upgrade-openapi-client-v0.8 Mar 4, 2026
@r-near r-near deleted the copilot/sub-pr-130 branch March 4, 2026 21:00
Copy link
Copy Markdown
Contributor

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

This PR pins the near-openapi-client and near-openapi-types git dependencies to a specific commit hash (rev = "0b9c46786934edd274a0ae91ab42c13516f50965"), corresponding to the v0.8.0 release. Without a rev, tag, or branch specifier, Cargo resolves git dependencies to the default branch tip, making builds non-reproducible and vulnerable to upstream breaking changes.

Changes:

  • Pin both near-openapi-client and near-openapi-types to a fixed commit hash in the workspace Cargo.toml.

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

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