Skip to content

Make Ruby sdkbuild BaseDir consistent with Python/TS#780

Merged
THardy98 merged 1 commit intomainfrom
fix/sdkbuild-ruby-basedir
Mar 23, 2026
Merged

Make Ruby sdkbuild BaseDir consistent with Python/TS#780
THardy98 merged 1 commit intomainfrom
fix/sdkbuild-ruby-basedir

Conversation

@THardy98
Copy link
Contributor

Previously, BuildRubyProgram hardcoded sourceDir = BaseDir + "/harness/ruby", requiring callers to pass a parent directory as BaseDir. This was inconsistent with Python and TypeScript where BaseDir IS the source directory containing the project files.

Now BaseDir points directly to the directory containing the gemspec and runner.rb, and RubyProgramFromDir derives the source from the parent of the build dir. Callers (run_ruby.go, run.go) updated to pass harness/ruby as BaseDir.

This enables other repos (e.g. omes) to use BuildRubyProgram with their own directory layout without needing a harness/ruby subdirectory.

@THardy98 THardy98 requested review from a team as code owners March 23, 2026 22:19
Previously, BuildRubyProgram hardcoded `sourceDir = BaseDir + "/harness/ruby"`,
requiring callers to pass a parent directory as BaseDir. This was inconsistent
with Python and TypeScript where BaseDir IS the source directory containing
the project files.

Now BaseDir points directly to the directory containing the gemspec and
runner.rb, and RubyProgramFromDir derives the source from the parent of
the build dir. Callers (run_ruby.go, run.go) updated to pass
`harness/ruby` as BaseDir.

This enables other repos (e.g. omes) to use BuildRubyProgram with their
own directory layout without needing a `harness/ruby` subdirectory.
@THardy98 THardy98 force-pushed the fix/sdkbuild-ruby-basedir branch from 513906c to c733645 Compare March 23, 2026 23:09
@THardy98 THardy98 merged commit 2a1403e into main Mar 23, 2026
26 checks passed
@THardy98 THardy98 deleted the fix/sdkbuild-ruby-basedir branch March 23, 2026 23:31
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