Skip to content

Display relative path to SQLite DB on JRuby - #446

Open
katafrakt wants to merge 2 commits into
mainfrom
fix-jruby-sqlite-display-name
Open

Display relative path to SQLite DB on JRuby#446
katafrakt wants to merge 2 commits into
mainfrom
fix-jruby-sqlite-display-name

Conversation

@katafrakt

Copy link
Copy Markdown
Contributor

The last minute change in #434 was incorrect. The database path was changed to relative in database.rb, but sqlite.rb overrode it, displaying absolute path and causing 46 specs to fail unnecessarily. Also, I somehow sneaked in Dir.current call, which does not exist - switching to Dir.pwd instead.

pathname = Pathname.new(path).expand_path
path = pathname.relative_path_from(Dir.current).to_s if pathname.to_s.start_with?("#{Dir.current}/")
end
path = relativize_for_display(database_path)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Actually, do we even need it here? This relative vs absolute path is a concern only for SQLite, so probably the change should be only there.

@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

ℹ️ Optional job failed: Ruby jruby

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