You've already forked goreleaser
							
							
				mirror of
				https://github.com/goreleaser/goreleaser.git
				synced 2025-10-30 23:58:09 +02:00 
			
		
		
		
	fix: ignore non-arm64/386 builds when building Scoop manifest (#2172)
This commit is contained in:
		| @@ -193,9 +193,18 @@ func dataFor(ctx *context.Context, cl client.Client, artifacts []*artifact.Artif | ||||
| 	} | ||||
|  | ||||
| 	for _, artifact := range artifacts { | ||||
| 		var arch = "64bit" | ||||
| 		if artifact.Goarch == "386" { | ||||
| 		if artifact.Goos != "windows" { | ||||
| 			continue | ||||
| 		} | ||||
|  | ||||
| 		var arch string | ||||
| 		switch { | ||||
| 		case artifact.Goarch == "386": | ||||
| 			arch = "32bit" | ||||
| 		case artifact.Goarch == "amd64": | ||||
| 			arch = "64bit" | ||||
| 		default: | ||||
| 			continue | ||||
| 		} | ||||
|  | ||||
| 		url, err := tmpl.New(ctx). | ||||
|   | ||||
| @@ -941,6 +941,23 @@ func Test_buildManifest(t *testing.T) { | ||||
| 						}, | ||||
| 					}, | ||||
| 				}, | ||||
| 				{ | ||||
| 					Name:   "foo_1.0.1_windows_arm.tar.gz", | ||||
| 					Goos:   "windows", | ||||
| 					Goarch: "arm", | ||||
| 					Path:   file, | ||||
| 					Extra: map[string]interface{}{ | ||||
| 						"ArtifactUploadHash": "820ead5d9d2266c728dce6d4d55b6460", | ||||
| 						"Builds": []*artifact.Artifact{ | ||||
| 							{ | ||||
| 								Name: "foo.exe", | ||||
| 							}, | ||||
| 							{ | ||||
| 								Name: "bar.exe", | ||||
| 							}, | ||||
| 						}, | ||||
| 					}, | ||||
| 				}, | ||||
| 				{ | ||||
| 					Name:   "foo_1.0.1_windows_386.tar.gz", | ||||
| 					Goos:   "windows", | ||||
|   | ||||
		Reference in New Issue
	
	Block a user