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

refactor: type aliasing ssh types #94

Merged
merged 3 commits into from Nov 17, 2022
Merged

refactor: type aliasing ssh types #94

merged 3 commits into from Nov 17, 2022

Conversation

caarlos0
Copy link
Member

@caarlos0 caarlos0 commented Nov 16, 2022

This should allow us to more easily use a fork of gliderlabs/ssh when needed (e.g. a pending PR), and also our users don't need to worry about which ssh to import (golang.org/x/crypto/ssh vs github.com/gliderlabs/ssh.

I took care to only use github.com/gliderlabs/ssh in types.go, wish.go and the testsession stuff to avoid cyclic imports.

I also changed the gossh imports where I could to simplify things.

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
@caarlos0 caarlos0 self-assigned this Nov 16, 2022
@caarlos0 caarlos0 added the enhancement New feature or request label Nov 16, 2022
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
@caarlos0 caarlos0 marked this pull request as ready for review November 16, 2022 19:56
Copy link
Member

@aymanbagabas aymanbagabas left a comment

Choose a reason for hiding this comment

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

Nice to see gossh "golang.org/x/crypto/ssh" being dropped, using both ssh and gossh was a bit confusing 😄

@caarlos0 caarlos0 mentioned this pull request Nov 17, 2022
@caarlos0 caarlos0 merged commit f7f0c95 into main Nov 17, 2022
@caarlos0 caarlos0 deleted the typealiases branch November 17, 2022 13:05
caarlos0 added a commit that referenced this pull request Nov 22, 2022
caarlos0 added a commit that referenced this pull request Nov 22, 2022
* Revert "fix: using our ssh fork (#95)"

This reverts commit a14cf6d.

* Revert "refactor: type aliasing ssh types (#94)"

This reverts commit f7f0c95.

* feat: using our fork

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants