Skip to content

WIP: Make TiUP compatible with usql v0.19.19#2691

Draft
ottok wants to merge 1 commit intopingcap:masterfrom
ottok:usql-0.19.19-compat
Draft

WIP: Make TiUP compatible with usql v0.19.19#2691
ottok wants to merge 1 commit intopingcap:masterfrom
ottok:usql-0.19.19-compat

Conversation

@ottok
Copy link
Contributor

@ottok ottok commented Feb 27, 2026

This is a draft as I am evaluating updating directly to latest usql v0.20.8 as an alternative.


As the golang-github-xo-usql-dev package v0.19.19 in Debian is newer than the v0.9.5 in go.mod of TiUP, the Debian build failed on:

src/github.com/pingcap/tiup/components/client/main.go:98:33: not enough arguments in call to rline.New
	have (bool, string, string)
	want (bool, bool, bool, string, string)
src/github.com/pingcap/tiup/components/client/main.go:102:70: not enough arguments in call to handler.New
	have (rline.IO, *user.User, string, bool)
	want (rline.IO, *user.User, string, billy.Filesystem, bool)

Apply these changes on TiUP to make it compatible:

  • rline.New now requires two additional boolean arguments. These are set to false as safe defaults.

  • handler.New now requires a billy.Filesystem argument. This is provided by importing osfs and creating a new osfs.New instance using the instance data directory.

What problem does this PR solve?

Closes: #2588.

Origin: https://salsa.debian.org/go-team/packages/tiup/-/blob/b12259882f8fdca0d9b4dec3ebc9c5ba99dffc03/debian/patches/0002-Make-TiUP-compatible-with-usql-v0.19.19.patch

What is changed and how it works?

See commit message and details.

Check List

Tests

  • Integration test
  • Manual test (add detailed scripts or steps below)

Side effects

  • Breaking backward compatibility (won't work with old usql anymore)

Related changes

Release notes:

NONE

As the  golang-github-xo-usql-dev package v0.19.19 in Debian is
newer than the v0.9.5 in go.mod of TiUP, the Debian build failed on:

    src/github.com/pingcap/tiup/components/client/main.go:98:33: not enough arguments in call to rline.New
    	have (bool, string, string)
    	want (bool, bool, bool, string, string)
    src/github.com/pingcap/tiup/components/client/main.go:102:70: not enough arguments in call to handler.New
    	have (rline.IO, *user.User, string, bool)
    	want (rline.IO, *user.User, string, billy.Filesystem, bool)

Apply these changes on TiUP to make it compatible:

- `rline.New` now requires two additional boolean arguments. These are
  set to `false` as safe defaults.

- `handler.New` now requires a `billy.Filesystem` argument. This is
  provided by importing `osfs` and creating a new `osfs.New` instance
  using the instance data directory.
@ti-chi-bot ti-chi-bot bot requested a review from breezewish February 27, 2026 14:13
@ti-chi-bot ti-chi-bot bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 27, 2026
@ti-chi-bot
Copy link
Contributor

ti-chi-bot bot commented Feb 27, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign bb7133 for approval. For more information see the Code Review Process.
Please ensure that each of them provides their approval before proceeding.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot bot requested a review from srstack February 27, 2026 14:13
@ti-chi-bot ti-chi-bot bot added contribution size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Feb 27, 2026
@ottok ottok marked this pull request as draft February 27, 2026 14:14
@codecov-commenter
Copy link

codecov-commenter commented Feb 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 39.20%. Comparing base (f6b4dc8) to head (bd253d4).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2691      +/-   ##
==========================================
+ Coverage   38.35%   39.20%   +0.85%     
==========================================
  Files         424      396      -28     
  Lines       47043    45751    -1292     
==========================================
- Hits        18042    17934     -108     
+ Misses      26595    25133    -1462     
- Partials     2406     2684     +278     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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

Labels

contribution do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update github.com/xo/usql v0.9.5 -> v0.19.x

2 participants