-
Notifications
You must be signed in to change notification settings - Fork 0
Upgrade baton-sdk to v0.2.47. #23
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
Conversation
This should fix extra capabilitity generation due to capabilitities changing order.
WalkthroughThe pull request updates the Changes
Possibly related PRs
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 0
🧹 Outside diff range and nitpick comments (1)
go.mod (1)
Line range hint
3-5: Fix inconsistent Go version and toolchain specificationThere appears to be a mismatch between the Go version (1.22.7) and the toolchain version (1.23.2). The toolchain version should not be higher than the Go version as Go 1.23 is not yet released.
go 1.22.7 -toolchain go1.23.2 +toolchain go1.22.7
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
⛔ Files ignored due to path filters (21)
go.sumis excluded by!**/*.sumand included by nonevendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/connector.pb.gois excluded by!**/*.pb.go,!vendor/**and included by nonevendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/connector.pb.validate.gois excluded by!vendor/**and included by nonevendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/connector_grpc.pb.gois excluded by!**/*.pb.go,!vendor/**and included by nonevendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/entitlement.pb.gois excluded by!**/*.pb.go,!vendor/**and included by nonevendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/entitlement.pb.validate.gois excluded by!vendor/**and included by nonevendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/grant.pb.gois excluded by!**/*.pb.go,!vendor/**and included by nonevendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/grant.pb.validate.gois excluded by!vendor/**and included by nonevendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/resource.pb.gois excluded by!**/*.pb.go,!vendor/**and included by nonevendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/resource.pb.validate.gois excluded by!vendor/**and included by nonevendor/github.com/conductorone/baton-sdk/pkg/connectorbuilder/connectorbuilder.gois excluded by!vendor/**and included by nonevendor/github.com/conductorone/baton-sdk/pkg/dotc1z/manager/local/local.gois excluded by!vendor/**and included by nonevendor/github.com/conductorone/baton-sdk/pkg/sdk/version.gois excluded by!vendor/**and included by nonevendor/github.com/conductorone/baton-sdk/pkg/sync/expand/cycle.gois excluded by!vendor/**and included by nonevendor/github.com/conductorone/baton-sdk/pkg/sync/expand/graph.gois excluded by!vendor/**and included by nonevendor/github.com/conductorone/baton-sdk/pkg/sync/syncer.gois excluded by!vendor/**and included by nonevendor/github.com/conductorone/baton-sdk/pkg/uhttp/client.gois excluded by!vendor/**and included by nonevendor/github.com/conductorone/baton-sdk/pkg/uhttp/dbcache.gois excluded by!vendor/**and included by nonevendor/github.com/conductorone/baton-sdk/pkg/uhttp/gocache.gois excluded by!vendor/**and included by nonevendor/github.com/conductorone/baton-sdk/pkg/uhttp/wrapper.gois excluded by!vendor/**and included by nonevendor/modules.txtis excluded by!vendor/**and included by none
📒 Files selected for processing (1)
go.mod(1 hunks)
🔇 Additional comments (2)
go.mod (2)
8-8: Verify the baton-sdk version upgrade
The upgrade from v0.2.44 to v0.2.47 appears to be a minor patch version bump. Let's verify this version:
✅ Verification successful
Version upgrade is appropriate and addresses the capability ordering issue
The version upgrade to v0.2.47 is verified to be correct as:
- It is currently the latest release of baton-sdk
- The release specifically addresses the capability ordering issue mentioned in the PR objective with the change: "Sort capabilities so that they don't change order between runs of baton capabilities"
- There are no breaking changes between v0.2.44 and v0.2.47, only improvements and bug fixes
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Description: Verify the baton-sdk version upgrade
# 1. Check if v0.2.47 is the latest version
# 2. Look for relevant changes between v0.2.44 and v0.2.47, particularly around capability ordering
# Get the latest version and release info
gh api repos/conductorone/baton-sdk/releases/latest
# Look for commits between these versions that mention capabilities
gh api graphql -f query='
{
repository(owner: "conductorone", name: "baton-sdk") {
refs(refPrefix: "refs/tags/", first: 10, orderBy: {field: TAG_COMMIT_DATE, direction: DESC}) {
nodes {
name
target {
... on Commit {
messageHeadline
message
}
}
}
}
}
}' | jq '.data.repository.refs.nodes[] | select(.name | contains("v0.2.4"))'
Length of output: 5432
Line range hint 13-106: Consider running go mod tidy and checking for updates
Since this is a dependency update PR, it would be good practice to:
- Run
go mod tidyto ensure all indirect dependencies are properly aligned - Check for any available security updates in indirect dependencies
This should fix extra capabilitity generation due to capabilitities changing order.
Summary by CodeRabbit
github.com/conductorone/baton-sdkdependency to enhance functionality and performance.