mirror of
				https://github.com/astral-sh/setup-uv.git
				synced 2025-10-30 22:46:46 +00:00 
			
		
		
		
	Fix wrong cacheDependencyPathHash (#201)
Introduced in https://github.com/astral-sh/setup-uv/pull/200 and not caught because the test is not needed for automerge to pass
This commit is contained in:
		
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							e3fb95a689
						
					
				
				
					commit
					180f8b4439
				
			
							
								
								
									
										2
									
								
								dist/save-cache/index.js
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/save-cache/index.js
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -91492,6 +91492,8 @@ function computeKeys(version) { | ||||
|             if (cacheDependencyPathHash === "-") { | ||||
|                 core.warning(`No file matched to [${inputs_1.cacheDependencyGlob.split("\n").join(",")}]. The cache will never get invalidated. Make sure you have checked out the target repository and configured the cache-dependency-glob input correctly.`); | ||||
|             } | ||||
|         } | ||||
|         if (cacheDependencyPathHash === "-") { | ||||
|             cacheDependencyPathHash = "-no-dependency-glob"; | ||||
|         } | ||||
|         const suffix = inputs_1.cacheSuffix ? `-${inputs_1.cacheSuffix}` : ""; | ||||
|   | ||||
							
								
								
									
										2
									
								
								dist/setup/index.js
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/setup/index.js
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -96575,6 +96575,8 @@ function computeKeys(version) { | ||||
|             if (cacheDependencyPathHash === "-") { | ||||
|                 core.warning(`No file matched to [${inputs_1.cacheDependencyGlob.split("\n").join(",")}]. The cache will never get invalidated. Make sure you have checked out the target repository and configured the cache-dependency-glob input correctly.`); | ||||
|             } | ||||
|         } | ||||
|         if (cacheDependencyPathHash === "-") { | ||||
|             cacheDependencyPathHash = "-no-dependency-glob"; | ||||
|         } | ||||
|         const suffix = inputs_1.cacheSuffix ? `-${inputs_1.cacheSuffix}` : ""; | ||||
|   | ||||
							
								
								
									
										2
									
								
								src/cache/restore-cache.ts
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								src/cache/restore-cache.ts
									
									
									
									
										vendored
									
									
								
							| @@ -47,6 +47,8 @@ async function computeKeys(version: string): Promise<string> { | ||||
|         `No file matched to [${cacheDependencyGlob.split("\n").join(",")}]. The cache will never get invalidated. Make sure you have checked out the target repository and configured the cache-dependency-glob input correctly.`, | ||||
|       ); | ||||
|     } | ||||
|   } | ||||
|   if (cacheDependencyPathHash === "-") { | ||||
|     cacheDependencyPathHash = "-no-dependency-glob"; | ||||
|   } | ||||
|   const suffix = cacheSuffix ? `-${cacheSuffix}` : ""; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user