Skip to content
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

FF-2839 fix: update ruby-sdk/Cargo.lock to include eppo_core from crates.io #16

Merged
merged 1 commit into from
Jul 23, 2024

Conversation

rasendubi
Copy link
Collaborator

No description provided.

@rasendubi rasendubi force-pushed the ff-2839-fix-ruby-cargo-lock branch 3 times, most recently from e38de07 to e879b19 Compare July 23, 2024 10:24
@rasendubi rasendubi force-pushed the ff-2839-fix-ruby-cargo-lock branch from e879b19 to 6ea7b35 Compare July 23, 2024 10:25
@rasendubi rasendubi requested a review from leoromanovsky July 23, 2024 10:27
Comment on lines +57 to +61
- name: Override eppo_core for testing
run: |
mkdir -p ~/.cargo/
echo "[patch.crates-io.eppo_core]" >> "${CARGO_HOME:-$HOME/.cargo}/config.toml"
echo "path = '$PWD/eppo_core'" >> "${CARGO_HOME:-$HOME/.cargo}/config.toml"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

With this, we should be able to run tests on installed gem

Comment on lines +299 to +300
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d21810a56968888dc45c5b10df36fbff2cdc8e56881766d48a28ad395c3de3e6"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is the fix for the issue. The rest is to ensure we catch this error automatically in the future.

@leoromanovsky leoromanovsky requested a review from greghuels July 23, 2024 23:02
Copy link
Member

@leoromanovsky leoromanovsky left a comment

Choose a reason for hiding this comment

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

Tested locally:

eppo-server-sdk 3.0.0 built to pkg/eppo-server-sdk-3.0.0.gem.
  Successfully built RubyGem
  Name: eppo-server-sdk
  Version: 3.0.0
  File: eppo-server-sdk-3.0.0.gem
➜  ruby-sdk git:(ff-2839-fix-ruby-cargo-lock) gem install /Users/leo/src/rust-sdk/ruby-sdk/pkg/eppo-server-sdk-3.0.0.gem
Building native extensions. This could take a while...
Successfully installed eppo-server-sdk-3.0.0
Parsing documentation for eppo-server-sdk-3.0.0
Installing ri documentation for eppo-server-sdk-3.0.0
Done installing documentation for eppo-server-sdk after 0 seconds
1 gem installed

A new release of RubyGems is available: 3.5.9 → 3.5.16!
Run `gem update --system 3.5.16` to update your installation.

✅ ✅ ✅

@leoromanovsky leoromanovsky merged commit b3e382a into main Jul 23, 2024
8 checks passed
@leoromanovsky leoromanovsky deleted the ff-2839-fix-ruby-cargo-lock branch July 23, 2024 23:13
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.

2 participants