gofumpt is a superset of gofmt, enabling some more code formatting
rules.
This commit is brought to you by
gofumpt -w .
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Instead of comparing an error value directly to unix.EINVAL, use
errors.Is() to handle cases where it's wrapped by the standard library,
and provide an Unwrap() method for errors that we wrap ourselves.
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
Tests that require calls to mount(2)/umount(2) are failing
when run under non-root user. Let's check if we're root
first and skip if we're not.
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Files that end with _linux.go and *_linux_test.go are
already used when GOOS=linux only, and so linux build
tag is redundant.
Files were found by
git ls-files | grep -E '_linux(_test|).go' | xargs grep -F '+build '
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Had to vendor in a new version of golang.org/x/net to build
Also had to make some changes to drivers to handle
archive.Reader -> io.Reader
archive.Archive -> io.ReadCloser
Also update .gitingore to ignore emacs files, containers-storage.*
and generated man pages.
Also no longer test travis against golang 1.7, cri-o, moby have also
done this.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>