Skip to content

Commit 4a5b698

Browse files
committed
macospkgremote: Make SigningEntitlements a string (limitation of s3 bucket metadata)
1 parent ebbccc9 commit 4a5b698

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

‎macospkgremote/go.mod‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ require (
88
github.com/bep/execrpc v0.10.0
99
github.com/bep/helpers v0.5.0
1010
github.com/bep/s3rpc v0.3.0
11-
github.com/gohugoio/hugoreleaser-archive-plugins/macospkg v0.3.0
11+
github.com/gohugoio/hugoreleaser-archive-plugins/macospkg v0.4.0
1212
github.com/gohugoio/hugoreleaser-plugins-api v0.8.0
1313
golang.org/x/sync v0.10.0
1414
)

‎macospkgremote/go.sum‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHk
6363
github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0=
6464
github.com/gohugoio/hugoreleaser-archive-plugins/macospkg v0.3.0 h1:reUmDaVpk7OnqYh2P1nKpfZWAvh/tWvTt1sxxupf+f0=
6565
github.com/gohugoio/hugoreleaser-archive-plugins/macospkg v0.3.0/go.mod h1:tZSEmE4IVNf6dPI3g7hzejmuC8j++RUN5TLTF3/HbVg=
66+
github.com/gohugoio/hugoreleaser-archive-plugins/macospkg v0.4.0 h1:BBZ7fIpCUi2N96XyfTHRB7eG0pmQ8bECIA0HQKMPPG4=
67+
github.com/gohugoio/hugoreleaser-archive-plugins/macospkg v0.4.0/go.mod h1:tZSEmE4IVNf6dPI3g7hzejmuC8j++RUN5TLTF3/HbVg=
6668
github.com/gohugoio/hugoreleaser-plugins-api v0.8.0 h1:H3qH9Ra7yg5ZZLFtkBYJqTbr1oAO7wkysMvcmSUauV0=
6769
github.com/gohugoio/hugoreleaser-plugins-api v0.8.0/go.mod h1:Qheg3q6TF7pq9etJBNceTqGaM1VfkYDnm2k2KIIC/Ac=
6870
github.com/golang-jwt/jwt/v4 v4.4.3-0.20220820150458-bfea432b1a9d h1:g83sVsMB9c5zW6RG7a767AkmCkAIbQEX6Z7UvEKgTjU=

‎macospkgremote/main.go‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,9 @@ func createArchive(infof func(format string, args ...any), req archiveplugin.Req
133133
}
134134

135135
metadata := map[string]string{
136-
"package_identifier": settings.PackageIdentifier,
137-
"package_version": settings.PackageVersion,
136+
"package_identifier": settings.PackageIdentifier,
137+
"package_version": settings.PackageVersion,
138+
"package_entitlements": settings.PackageEntitlements,
138139
}
139140

140141
res, err := client.Execute(ctx, name, s3rpc.Input{Filename: tempFile.Name(), Metadata: metadata})

0 commit comments

Comments
 (0)