Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

[18.06] Update Microsoft/go-winio to 0.4.8 #2

Merged
merged 1 commit into from
Jul 5, 2018

Conversation

thaJeztah
Copy link
Member

Fixes named pipe support for hyper-v isolated containers

cherry picked from commit 7409558 (moby#37364) - no conflicts

@thaJeztah thaJeztah added this to the 18.06.0 milestone Jun 29, 2018
@andrewhsu andrewhsu requested a review from johnstep July 1, 2018 22:15
Fixes named pipe support for hyper-v isolated containers

Signed-off-by: Sebastiaan van Stijn <[email protected]>
(cherry picked from commit 7409558)
Signed-off-by: Sebastiaan van Stijn <[email protected]>
Copy link

@tiborvass tiborvass left a comment

Choose a reason for hiding this comment

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

LGTM

@andrewhsu andrewhsu merged commit 0d029b0 into docker-archive:18.06 Jul 5, 2018
@thaJeztah thaJeztah deleted the 18.06-update_go_winio branch July 5, 2018 17:45
docker-jenkins pushed a commit that referenced this pull request Jul 13, 2018
When go-1.11beta1 is used for building, the following error is
reported:

> 14:56:20 daemon\graphdriver\lcow\lcow.go:236: Debugf format %s reads
> arg #2, but call has 1 arg

While fixing this, let's also fix a few other things in this
very function (startServiceVMIfNotRunning):

1. Do not use fmt.Printf when not required.
2. Use `title` whenever possible.
3. Don't add `id` to messages as `title` already has it.
4. Remove duplicated colons.
5. Try to unify style of messages.
6. s/startservicevmifnotrunning/startServiceVMIfNotRunning/
...

In general, logging/debugging here is a mess and requires much more
love than I can give it at the moment. Areas for improvement:

1. Add a global var logger = logrus.WithField("storage-driver", "lcow")
and use it everywhere else in the code.
2. Use logger.WithField("id", id) whenever possible (same for "context"
and other similar fields).
3. Revise all the errors returned to be uniform.
4. Make use of errors.Wrap[f] whenever possible.

Signed-off-by: Kir Kolyshkin <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants