mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 12:18:16 +00:00 
			
		
		
		
	make pin-dependency.sh only work at the module level
This commit is contained in:
		@@ -64,7 +64,7 @@ mkdir -p "${_tmp}"
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
# Add the require directive
 | 
					# Add the require directive
 | 
				
			||||||
echo "Running: go get ${dep}@${sha}"
 | 
					echo "Running: go get ${dep}@${sha}"
 | 
				
			||||||
go get -d "${dep}@${sha}"
 | 
					go get -m -d "${dep}@${sha}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Find the resolved version
 | 
					# Find the resolved version
 | 
				
			||||||
rev=$(go mod edit -json | jq -r ".Require[] | select(.Path == \"${dep}\") | .Version")
 | 
					rev=$(go mod edit -json | jq -r ".Require[] | select(.Path == \"${dep}\") | .Version")
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user