Skip to content

fix: Avoid "unexpected argument '--extra-search-path' found" when running ty on Python code with many 3rd-party deps#739

Draft
jherland wants to merge 1 commit into
aspect-build:mainfrom
jherland:jherland/fix-ty-extra-search-path-error
Draft

fix: Avoid "unexpected argument '--extra-search-path' found" when running ty on Python code with many 3rd-party deps#739
jherland wants to merge 1 commit into
aspect-build:mainfrom
jherland:jherland/fix-ty-extra-search-path-error

Conversation

@jherland

@jherland jherland commented Feb 2, 2026

Copy link
Copy Markdown

This refactors how we build the command-line for running ty, to avoid

error: unexpected argument '--extra-search-path' found

seen when a target includes a lot of 3rd-party Python dependencies.

This should fix #726


Changes are visible to end-users: no

Test plan

  • Covered by existing test cases
  • New test cases added
  • Manual testing; please provide instructions so we can reproduce:

This avoids the "error: unexpected argument '--extra-search-path' found"
seen when a target includes a lot of 3rd-party Python dependencies.
@CLAassistant

CLAassistant commented Feb 2, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@aspect-workflows

aspect-workflows Bot commented Feb 2, 2026

Copy link
Copy Markdown

Bazel 7 (Test)

All tests were cache hits

6 tests (100.0%) were fully cached saving 2s.


Bazel 8 (Test)

All tests were cache hits

6 tests (100.0%) were fully cached saving 2s.


Bazel 9 (Test)

All tests were cache hits

6 tests (100.0%) were fully cached saving 2s.

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.

[Bug]: ty fails with no --extra-search-path

2 participants