Add unconvert linter and apply fixes
Signed-off-by: Sascha Grunert <sgrunert@suse.com>
Sascha Grunert
4 years ago
568 | 568 |
cmd.UnshareFlags = syscall.CLONE_NEWUTS | syscall.CLONE_NEWNS
|
569 | 569 |
requestedUserNS := false
|
570 | 570 |
for _, ns := range spec.Linux.Namespaces {
|
571 | |
if ns.Type == specs.LinuxNamespaceType(specs.UserNamespace) {
|
|
571 |
if ns.Type == specs.UserNamespace {
|
572 | 572 |
requestedUserNS = true
|
573 | 573 |
}
|
574 | 574 |
}
|
183 | 183 |
}
|
184 | 184 |
// In case we're using caching, decide how to handle compression for a cache.
|
185 | 185 |
// If we're using blob caching, set it up for the source.
|
186 | |
var maybeCachedSrc = types.ImageReference(src)
|
187 | |
var maybeCachedDest = types.ImageReference(dest)
|
|
186 |
maybeCachedSrc := src
|
|
187 |
maybeCachedDest := dest
|
188 | 188 |
if options.BlobDirectory != "" {
|
189 | 189 |
compress := types.PreserveOriginal
|
190 | 190 |
if options.Compression != archive.Uncompressed {
|
|
300 | 300 |
if err != nil {
|
301 | 301 |
return nil, "", err
|
302 | 302 |
}
|
303 | |
var maybeCachedSrc = types.ImageReference(src)
|
|
303 |
maybeCachedSrc := src
|
304 | 304 |
if options.BlobDirectory != "" {
|
305 | 305 |
compress := types.PreserveOriginal
|
306 | 306 |
if options.Compression != archive.Uncompressed {
|