Skip to content

Commit

Permalink
fix: specify eppo_core path through local override (#12)
Browse files Browse the repository at this point in the history
This is required so that eppo_rb/Cargo.toml does not include local
path (which would have been used in gem install).

Co-authored-by: Oleksii Shmalko <[email protected]>
  • Loading branch information
leoromanovsky and rasendubi authored Jul 18, 2024
1 parent f9c11e8 commit cb236b9
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 4 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,3 @@

/sdk-test-data/
node_modules
ruby-sdk/eppo-server-sdk-0.3.0.gem
3 changes: 3 additions & 0 deletions ruby-sdk/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[patch.crates-io]
# Local override for development.
eppo_core = { path = '../eppo_core' }
1 change: 1 addition & 0 deletions ruby-sdk/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
*.a
mkmf.log
target/
*.gem

# rspec failure tracking
.rspec_status
2 changes: 1 addition & 1 deletion ruby-sdk/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ruby-sdk/eppo-server-sdk.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
spec.files = IO.popen(%w[git ls-files -z], chdir: __dir__, err: IO::NULL) do |ls|
ls.readlines("\x0", chomp: true).reject do |f|
(f == gemspec) ||
f.start_with?(*%w[bin/ test/ spec/ features/ .git .github appveyor Gemfile])
f.start_with?(*%w[bin/ test/ spec/ features/ .cargo/ .git/ .github/ appveyor Gemfile])
end
end
spec.bindir = "exe"
Expand Down
2 changes: 1 addition & 1 deletion ruby-sdk/ext/eppo_rb/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ crate-type = ["cdylib"]

[dependencies]
env_logger = { version = "0.11.3", features = ["unstable-kv"] }
eppo_core = { version = "1.0.0", path = "../../../eppo_core" }
eppo_core = { version = "1.0.0" }
log = { version = "0.4.21", features = ["kv_serde"] }
magnus = { version = "0.6.2" }
serde = { version = "1.0.203", features = ["derive"] }
Expand Down

0 comments on commit cb236b9

Please sign in to comment.