mirror of
				https://github.com/NVIDIA/nvidia-container-toolkit
				synced 2025-06-26 18:18:24 +00:00 
			
		
		
		
	Allow update of subcomponents to be skipped
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
		
							parent
							
								
									c30764b7cc
								
							
						
					
					
						commit
						9fb5ac36ed
					
				| @ -46,12 +46,16 @@ else | ||||
|     targets=${all[@]} | ||||
| fi | ||||
| 
 | ||||
| echo "Updating components" | ||||
| "${SCRIPTS_DIR}/update-components.sh" | ||||
| if [[ -n $(git status -s third_party) && ${ALLOW_LOCAL_COMPONENT_CHANGES} != "true" ]]; then | ||||
|     echo "ERROR: Building with local component changes." | ||||
|     echo "Commit pending changes or rerun with ALLOW_LOCAL_COMPONENT_CHANGES='true'" | ||||
|     exit 1 | ||||
| if [[ -z ${SKIP_UPDATE_COMPONENTS} ]]; then | ||||
|     echo "Updating components" | ||||
|     "${SCRIPTS_DIR}/update-components.sh" | ||||
|     if [[ -n $(git status -s third_party) && ${ALLOW_LOCAL_COMPONENT_CHANGES} != "true" ]]; then | ||||
|         echo "ERROR: Building with local component changes." | ||||
|         echo "Commit pending changes or rerun with ALLOW_LOCAL_COMPONENT_CHANGES='true'" | ||||
|         exit 1 | ||||
|     fi | ||||
| else | ||||
|     echo "Skipping update of components" | ||||
| fi | ||||
| 
 | ||||
| eval $(${SCRIPTS_DIR}/get-component-versions.sh) | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user