Skip to content

Development purpose only:#53

Merged
Edouard-chin merged 1 commit intomainfrom
ec-date-fix
Mar 2, 2026
Merged

Development purpose only:#53
Edouard-chin merged 1 commit intomainfrom
ec-date-fix

Conversation

@Edouard-chin
Copy link
Member

@Edouard-chin Edouard-chin commented Feb 28, 2026

Copy stating files to the root of the project:

  • The previous code would not work when a gem Rakefile includes a compiler task that has a dynamic lib_dir.

    For instance:

    Rake::ExtensionTask.new("date") do |ext|
      ext.lib_dir = "lib/#{RUBY_VERSION}"
    end

    In this case, when the compilation starts, the runtime ruby would be on Ruby 3.1.7, so the binaries would be located in tmp/stage/lib/3.1.7/3.4/date.so.

Then once we want to try running the test suite for Ruby 3.4, we'd evaluate the ExtensionTask again and we'd try to copy tmp/stage/lib/3.4.7/3.4/date.so which doesn't exist.

The fix in this patch is to copy everything in the tmp/stage/* folder at the root of the repo.

@Edouard-chin Edouard-chin force-pushed the ec-date-fix branch 4 times, most recently from 476f8b2 to 965222a Compare March 2, 2026 20:30
- The previous code would not work when a gem Rakefile includes
  a compiler task that has a dynamic `lib_dir`.

  For instance:

  ```ruby
  Rake::ExtensionTask.new("date") do |ext|
    ext.lib_dir = "lib/#{RUBY_VERSION}"
  end
  ```

  In this case, when the compilation starts, the runtime ruby would
  be on Ruby 3.1.7, so the binaries would be located in
  `tmp/stage/lib/3.1.7/3.4/date.so`.

  Then once we want to try running the test suite for Ruby 3.4,
  we'd evaluate the ExtensionTask again and we'd try to copy
  `tmp/stage/lib/3.4.7/3.4/date.so` which doesn't exist.

  The fix in this patch is to copy everything in the `tmp/stage/*`
  folder at the root of the repo.
@Edouard-chin Edouard-chin merged commit 070d51c into main Mar 2, 2026
10 checks passed
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.

1 participant