mirror of
				https://gitea.com/Lydanne/buildx.git
				synced 2025-10-31 16:13:45 +08:00 
			
		
		
		
	forbid setting no-cache and no-cache-filter together
Per review request. Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
		| @@ -99,6 +99,10 @@ func runBuild(dockerCli command.Cli, in buildOptions) (err error) { | |||||||
| 		pull = *in.pull | 		pull = *in.pull | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
|  | 	if noCache && len(in.noCacheFilter) > 0 { | ||||||
|  | 		return errors.Errorf("--no-cache and --no-cache-filter cannot currently be used together") | ||||||
|  | 	} | ||||||
|  |  | ||||||
| 	if in.quiet && in.progress != "auto" && in.progress != "quiet" { | 	if in.quiet && in.progress != "auto" && in.progress != "quiet" { | ||||||
| 		return errors.Errorf("progress=%s and quiet cannot be used together", in.progress) | 		return errors.Errorf("progress=%s and quiet cannot be used together", in.progress) | ||||||
| 	} else if in.quiet { | 	} else if in.quiet { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Tonis Tiigi
					Tonis Tiigi