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 ssh context not working #577

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

peauc
Copy link
Contributor

@peauc peauc commented Sep 2, 2024

Fix issue as described in #559

@peauc
Copy link
Contributor Author

peauc commented Sep 2, 2024

It seems that I was missing the code of the PR #511 that was merged early June.
I still have the issue using my now fresh copy of master.

The code of this branch is a bit cleaner and now works for me

@peauc
Copy link
Contributor Author

peauc commented Sep 3, 2024

I'll get to the tests in a few days.

Copy link
Owner

@jesseduffield jesseduffield left a comment

Choose a reason for hiding this comment

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

See comments :)

@@ -71,33 +71,30 @@ func (c *DockerCommand) NewCommandObject(obj CommandObject) CommandObject {
return defaultObj
}

// NewDockerCommand it runs docker commands
// NewDockerCommand creates a DockerCommand struct that wraps the docker client.
// Able to run docker commands. And handles
Copy link
Owner

Choose a reason for hiding this comment

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

This comment is incomplete

client.FromEnv,
client.WithVersion(APIVersion),
}
// For an ssh connection the DOCKER_HOST env variable has been overridden.
Copy link
Owner

Choose a reason for hiding this comment

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

Could you explain the rationale behind these changes? I'm not clear on the reasoning

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.

2 participants