mirror of
				https://gitea.com/Lydanne/buildx.git
				synced 2025-11-04 01:53:42 +08:00 
			
		
		
		
	controller: Extract nested CommonOptions on controller API
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com>
This commit is contained in:
		@@ -233,14 +233,10 @@ func TestResolvePaths(t *testing.T) {
 | 
			
		||||
		{
 | 
			
		||||
			name: "metadatafile",
 | 
			
		||||
			options: controllerapi.BuildOptions{
 | 
			
		||||
				Opts: &controllerapi.CommonOptions{
 | 
			
		||||
					MetadataFile: "test1",
 | 
			
		||||
				},
 | 
			
		||||
				MetadataFile: "test1",
 | 
			
		||||
			},
 | 
			
		||||
			want: controllerapi.BuildOptions{
 | 
			
		||||
				Opts: &controllerapi.CommonOptions{
 | 
			
		||||
					MetadataFile: filepath.Join(tmpwd, "test1"),
 | 
			
		||||
				},
 | 
			
		||||
				MetadataFile: filepath.Join(tmpwd, "test1"),
 | 
			
		||||
			},
 | 
			
		||||
		},
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user