Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix broken version check in tbot's tshwrap #13034

Merged
merged 4 commits into from
May 31, 2022

Conversation

timothyb89
Copy link
Contributor

tshwrap performs a tsh version check to ensure it has the functionality we need. Unfortunately, during a final refactoring before merging, we changed the function signature of capture() to require an explicit path to a tsh binary but in a way that was unfortunately not caught by the compiler. The previous syntax meant we just tried to execute the first argument, i.e. version, which is never what we want.

This PR correctly passes the tsh path to capture() to fix the version check.

`tshwrap` performs a tsh version check to ensure it has the
functionality we need. Unfortunately, during a final refactoring
before merging, we changed the function signature of `capture()` to
require an explicit path to a `tsh` binary but in a way that was
unfortunately not caught by the compiler. The previous syntax meant
we just tried to execute the first argument, i.e. `version`, which
is never what we want.

This PR correctly passes the tsh path to `capture()` to fix the
version check.
@timothyb89 timothyb89 merged commit b170837 into master May 31, 2022
@github-actions
Copy link

@timothyb89 See the table below for backport results.

Branch Result
branch/v9 Create PR

@strideynet strideynet deleted the timothyb89/fix-tbot-wrap-version branch May 31, 2022 18:49
r0mant added a commit that referenced this pull request May 31, 2022
* Fix broken version check in tbot's `tshwrap`

`tshwrap` performs a tsh version check to ensure it has the
functionality we need. Unfortunately, during a final refactoring
before merging, we changed the function signature of `capture()` to
require an explicit path to a `tsh` binary but in a way that was
unfortunately not caught by the compiler. The previous syntax meant
we just tried to execute the first argument, i.e. `version`, which
is never what we want.

This PR correctly passes the tsh path to `capture()` to fix the
version check.

* Release 9.3.2

Co-authored-by: Roman Tkachenko <roman@goteleport.com>
@webvictim webvictim mentioned this pull request Jun 8, 2022
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.

None yet

3 participants