-
Notifications
You must be signed in to change notification settings - Fork 35
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
Update dependencies #122
Update dependencies #122
Conversation
01fa555
to
d09e5f2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you separate PR from this for updating deprecated API (Docker::containers)?
@@ -140,7 +138,7 @@ pub struct HyperClient { | |||
|
|||
fn join_uri(uri: &Uri, path: &str) -> Result<Uri> { | |||
let joined = format!("{}{}", uri.to_string(), path); | |||
Ok(Uri::from_str(&joined).context(ErrorKind::InvalidUri { var: joined })?) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The value var
of InvalidUri
is required.
This is because we need to know what string caused the parsing error when we tried to parse it.
@@ -276,7 +273,7 @@ impl HyperClient { | |||
builder.add_root_certificate(ca); | |||
// This ensures that using docker-machine-esque addresses work with Hyper. | |||
let addr_https = addr.clone().replacen("tcp://", "https://", 1); | |||
let url = Uri::from_str(&addr_https).context(ErrorKind::InvalidUri { var: addr_https })?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same above
@@ -287,7 +284,7 @@ impl HyperClient { | |||
pub fn connect_with_http(addr: &str) -> result::Result<Self, Error> { | |||
// This ensures that using docker-machine-esque addresses work with Hyper. | |||
let addr_https = addr.clone().replace("tcp://", "http://"); | |||
let url = Uri::from_str(&addr_https).context(ErrorKind::InvalidUri { var: addr_https })?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same above
4769d25
to
65a05fd
Compare
65a05fd
to
2eaa13b
Compare
I fixed |
Looks good 👍 |
This PR updates dependencies to resolve vulnerabilities.