go.mod: github.com/Microsoft/hcsshim v0.8.16
full diff: https://github.com/microsoft/hcsshim/compare/v0.8.15...v0.8.16 also updating github.com/Microsoft/hcsshim/test to current master Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
		
							
								
								
									
										12
									
								
								vendor/github.com/Microsoft/hcsshim/computestorage/helpers.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										12
									
								
								vendor/github.com/Microsoft/hcsshim/computestorage/helpers.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -70,11 +70,9 @@ func SetupContainerBaseLayer(ctx context.Context, layerPath, baseVhdPath, diffVh
 | 
			
		||||
 | 
			
		||||
	defer func() {
 | 
			
		||||
		if err != nil {
 | 
			
		||||
			syscall.CloseHandle(handle)
 | 
			
		||||
			_ = syscall.CloseHandle(handle)
 | 
			
		||||
			os.RemoveAll(baseVhdPath)
 | 
			
		||||
			if os.Stat(diffVhdPath); err == nil {
 | 
			
		||||
				os.RemoveAll(diffVhdPath)
 | 
			
		||||
			}
 | 
			
		||||
			os.RemoveAll(diffVhdPath)
 | 
			
		||||
		}
 | 
			
		||||
	}()
 | 
			
		||||
 | 
			
		||||
@@ -148,11 +146,9 @@ func SetupUtilityVMBaseLayer(ctx context.Context, uvmPath, baseVhdPath, diffVhdP
 | 
			
		||||
 | 
			
		||||
	defer func() {
 | 
			
		||||
		if err != nil {
 | 
			
		||||
			syscall.CloseHandle(handle)
 | 
			
		||||
			_ = syscall.CloseHandle(handle)
 | 
			
		||||
			os.RemoveAll(baseVhdPath)
 | 
			
		||||
			if os.Stat(diffVhdPath); err == nil {
 | 
			
		||||
				os.RemoveAll(diffVhdPath)
 | 
			
		||||
			}
 | 
			
		||||
			os.RemoveAll(diffVhdPath)
 | 
			
		||||
		}
 | 
			
		||||
	}()
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user