mirror of
				https://github.com/NVIDIA/nvidia-container-toolkit
				synced 2025-06-26 18:18:24 +00:00 
			
		
		
		
	Merge branch 'bump-version-1.6.0' into 'master'
Bump version for 1.6.0 release See merge request nvidia/container-toolkit/container-toolkit!78
This commit is contained in:
		
						commit
						92bb04f0fd
					
				
							
								
								
									
										2
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								Makefile
									
									
									
									
									
								
							| @ -18,7 +18,7 @@ DIST_DIR ?= $(CURDIR)/dist | ||||
| 
 | ||||
| LIB_NAME := nvidia-container-toolkit | ||||
| LIB_VERSION := 1.6.0 | ||||
| LIB_TAG ?= rc.3 | ||||
| LIB_TAG ?= | ||||
| 
 | ||||
| GOLANG_VERSION := 1.16.3 | ||||
| MODULE := github.com/NVIDIA/nvidia-container-toolkit | ||||
|  | ||||
| @ -21,7 +21,7 @@ DIST_DIR ?= $(CURDIR)/dist | ||||
| # TODO: These should be defined ONCE and currently duplicate the version in the
 | ||||
| # toolkit makefile.
 | ||||
| LIB_VERSION := 1.6.0 | ||||
| LIB_TAG := rc.3 | ||||
| LIB_TAG := | ||||
| 
 | ||||
| VERSION ?= $(LIB_VERSION)$(if $(LIB_TAG),-$(LIB_TAG)) | ||||
| 
 | ||||
|  | ||||
| @ -32,7 +32,7 @@ func NewLowLevelRuntime(candidates ...string) (Runtime, error) { | ||||
| 
 | ||||
| // NewLowLevelRuntimeWithLogger creates a Runtime as with NewLowLevelRuntime using the specified logger.
 | ||||
| func NewLowLevelRuntimeWithLogger(logger *log.Logger, candidates ...string) (Runtime, error) { | ||||
| 	runtimePath, err := findRuntime(candidates) | ||||
| 	runtimePath, err := findRuntime(logger, candidates) | ||||
| 	if err != nil { | ||||
| 		return nil, fmt.Errorf("error locating runtime: %v", err) | ||||
| 	} | ||||
| @ -42,19 +42,19 @@ func NewLowLevelRuntimeWithLogger(logger *log.Logger, candidates ...string) (Run | ||||
| 
 | ||||
| // findRuntime checks elements in a list of supplied candidates for a matching executable in the PATH.
 | ||||
| // The absolute path to the first match is returned.
 | ||||
| func findRuntime(candidates []string) (string, error) { | ||||
| func findRuntime(logger *log.Logger, candidates []string) (string, error) { | ||||
| 	if len(candidates) == 0 { | ||||
| 		return "", fmt.Errorf("at least one runtime candidate must be specified") | ||||
| 	} | ||||
| 
 | ||||
| 	for _, candidate := range candidates { | ||||
| 		log.Infof("Looking for runtime binary '%v'", candidate) | ||||
| 		logger.Infof("Looking for runtime binary '%v'", candidate) | ||||
| 		runcPath, err := exec.LookPath(candidate) | ||||
| 		if err == nil { | ||||
| 			log.Infof("Found runtime binary '%v'", runcPath) | ||||
| 			logger.Infof("Found runtime binary '%v'", runcPath) | ||||
| 			return runcPath, nil | ||||
| 		} | ||||
| 		log.Warnf("Runtime binary '%v' not found: %v", candidate, err) | ||||
| 		logger.Warnf("Runtime binary '%v' not found: %v", candidate, err) | ||||
| 	} | ||||
| 
 | ||||
| 	return "", fmt.Errorf("no runtime binary found from candidate list: %v", candidates) | ||||
|  | ||||
| @ -1,3 +1,10 @@ | ||||
| nvidia-container-toolkit (1.6.0-1) UNRELEASED; urgency=medium | ||||
| 
 | ||||
|   * Promote 1.6.0~rc.3-1 to 1.6.0-1 | ||||
|   * Fix unnecessary logging to stderr instead of configured nvidia-container-runtime log file | ||||
| 
 | ||||
|  -- NVIDIA CORPORATION <cudatools@nvidia.com>  Wed, 17 Nov 2021 09:25:15 +0100 | ||||
| 
 | ||||
| nvidia-container-toolkit (1.6.0~rc.3-1) experimental; urgency=medium | ||||
| 
 | ||||
|   * Move OCI and command line checks for runtime to internal oci package | ||||
|  | ||||
| @ -64,6 +64,10 @@ rm -f %{_bindir}/nvidia-container-runtime-hook | ||||
| /usr/share/containers/oci/hooks.d/oci-nvidia-hook.json | ||||
| 
 | ||||
| %changelog | ||||
| * Wed Nov 17 2021 NVIDIA CORPORATION <cudatools@nvidia.com> 3.6.0-1 | ||||
| - Promote 1.6.0-0.1.rc.3 to 1.6.0-1 | ||||
| - Fix unnecessary logging to stderr instead of configured nvidia-container-runtime log file | ||||
| 
 | ||||
| * Mon Nov 15 2021 NVIDIA CORPORATION <cudatools@nvidia.com> 1.6.0-0.1.rc.3 | ||||
| 
 | ||||
| - Move OCI and command line checks for runtime to internal oci package | ||||
|  | ||||
							
								
								
									
										2
									
								
								third_party/libnvidia-container
									
									
									
									
										vendored
									
									
								
							
							
								
								
								
								
								
								
							
						
						
									
										2
									
								
								third_party/libnvidia-container
									
									
									
									
										vendored
									
									
								
							| @ -1 +1 @@ | ||||
| Subproject commit ff6ed3d5637f0537c4951a2757512108cc0ae147 | ||||
| Subproject commit dd2c49d6699e4d8529fbeaa58ee91554977b652e | ||||
							
								
								
									
										2
									
								
								third_party/nvidia-container-runtime
									
									
									
									
										vendored
									
									
								
							
							
								
								
								
								
								
								
							
						
						
									
										2
									
								
								third_party/nvidia-container-runtime
									
									
									
									
										vendored
									
									
								
							| @ -1 +1 @@ | ||||
| Subproject commit ba4815e7eb31c23d839d58c94623ec53f4e8d368 | ||||
| Subproject commit 38ff520daa33d3a3a733440957c6aa346757bd1f | ||||
							
								
								
									
										2
									
								
								third_party/nvidia-docker
									
									
									
									
										vendored
									
									
								
							
							
								
								
								
								
								
								
							
						
						
									
										2
									
								
								third_party/nvidia-docker
									
									
									
									
										vendored
									
									
								
							| @ -1 +1 @@ | ||||
| Subproject commit 34934c282707a1dc3f4341ead20a9e40d36ee618 | ||||
| Subproject commit fd3233aa5f4ade28ac6bda616c2fa77a0ce89cd9 | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user