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

fix: Missing ruby files from native gems #51

Merged
merged 4 commits into from
Oct 21, 2024
Merged

Conversation

felipecsl
Copy link
Member

@felipecsl felipecsl commented Oct 21, 2024

Description

Add mising ruby files to gemspec. Since we build the cross platform gems using rb-sys-dock, I think git ls-files doesn't work because the .git directory is not available from the docker container.

Reference: wasmtime gemspec: https://github.com/bytecodealliance/wasmtime-rb/blob/main/wasmtime.gemspec#L21-L28

Testing

gem install --local pkg/eppo-server-sdk-3.2.2-arm64-darwin.gem
ruby -reppo_client -e "puts EppoClient::VERSION" # => 3.2.2

gem install pkg/eppo-server-sdk-*.gem --verbose
script="puts EppoClient::Core::Client.new(EppoClient::Config.new('placeholder'))"
ruby -reppo_client -e "$script" | grep fetching new configuration
echo "✅ Successfully installed gem"
Copy link
Member Author

Choose a reason for hiding this comment

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

this should prevent us from running into this issue again.
Shamelessly stolen from wasmtime https://github.com/bytecodealliance/wasmtime-rb/blob/main/.github/workflows/release.yml#L57-L63

@felipecsl felipecsl merged commit 24a22d5 into main Oct 21, 2024
26 checks passed
@felipecsl felipecsl deleted the felipecsl--fix-missing-src branch October 21, 2024 21:44
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