Skip to content

Comments

chore: avoid build warning#6627

Merged
tisonkun merged 3 commits intomainfrom
avoid-build-warning
Oct 8, 2025
Merged

chore: avoid build warning#6627
tisonkun merged 3 commits intomainfrom
avoid-build-warning

Conversation

@tisonkun
Copy link
Member

@tisonkun tisonkun commented Oct 7, 2025

cc @erickguan for verification

@tisonkun tisonkun requested review from PsiACE and Xuanwo as code owners October 7, 2025 22:54
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. releases-note/chore The PR has a title that begins with "chore" or changes other small things that hard to tell labels Oct 7, 2025
desc "Copy the core directory for gem packaging" # Read more in `./.github/workflows/release-ruby.yml`
task :copy_core do
puts "Copy the core directory for packaging..."
FileUtils.cp_r('../../core', '.')
Copy link
Member Author

Choose a reason for hiding this comment

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

Perhaps add to .gitigonre and delete every time before copy. But let's first verify a happy path can work.

Signed-off-by: tison <[email protected]>
@tisonkun
Copy link
Member Author

tisonkun commented Oct 8, 2025

opendal.gemspec has symbol link resolving logics also.

@erikguan could you please take a look? Anyway we should avoid simply adding a symbol link to core from bindings/ruby which may cause Cargo hazard.

Not quite sure if gem only include files in the same directory and we should do something different. For example, always copy core to bindings/ruby before any command, but exclude it from the cargo packaged source.

Signed-off-by: tison <[email protected]>
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Oct 8, 2025
@tisonkun
Copy link
Member Author

tisonkun commented Oct 8, 2025

I'll merge this patch first. And @erickguan can give another look for further improvement.

@tisonkun tisonkun merged commit 1db5036 into main Oct 8, 2025
39 of 40 checks passed
@tisonkun tisonkun deleted the avoid-build-warning branch October 8, 2025 05:59
# 1. this crate won't be published, we always use the local version
# 2. we use the symbolink to allow released gem to find core's source files.
opendal = { version = ">=0", path = "./core", features = [
opendal = { version = ">=0", path = "../../core", features = [
Copy link
Member

@erickguan erickguan Oct 8, 2025

Choose a reason for hiding this comment

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

The problem is that distributed gem can't look into the parent directory for security reasons.

@tisonkun do you have a way to resolve this based on dev/distributed environment?

tags:
- 'v[0-9]+.[0-9]+.[0-9]+-rc.[0-9]+' # Triggers on version tags (v0.54.0, v0.54.0-rc.1, etc.)
# Triggers on version tags (v0.54.0, v0.54.0-rc.1, etc.)
- 'v[0-9]+.[0-9]+.[0-9]+'
Copy link
Member

Choose a reason for hiding this comment

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

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer releases-note/chore The PR has a title that begins with "chore" or changes other small things that hard to tell size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants