-
Notifications
You must be signed in to change notification settings - Fork 2
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
Conversation
e38de07
to
e879b19
Compare
e879b19
to
6ea7b35
Compare
- 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" |
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.
With this, we should be able to run tests on installed gem
source = "registry+https://github.com/rust-lang/crates.io-index" | ||
checksum = "d21810a56968888dc45c5b10df36fbff2cdc8e56881766d48a28ad395c3de3e6" |
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.
This is the fix for the issue. The rest is to ensure we catch this error automatically in the future.
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.
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.
✅ ✅ ✅
No description provided.