Skip to content

Commit 68838fa

Browse files
committed
Add new "DefaultArchitecture" value
1 parent 840158d commit 68838fa

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

manifest/rfc2822.go

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,16 @@ type Manifest2822Entry struct {
4242
Constraints []string `delim:"," strip:"\n\r\t "`
4343
}
4444

45-
var DefaultManifestEntry = Manifest2822Entry{
46-
Architectures: []string{"amd64"},
45+
var (
46+
DefaultArchitecture = "amd64"
4747

48-
GitFetch: "refs/heads/master",
49-
Directory: ".",
50-
}
48+
DefaultManifestEntry = Manifest2822Entry{
49+
Architectures: []string{DefaultArchitecture},
50+
51+
GitFetch: "refs/heads/master",
52+
Directory: ".",
53+
}
54+
)
5155

5256
func (entry Manifest2822Entry) Clone() Manifest2822Entry {
5357
// SLICES! grr

0 commit comments

Comments
 (0)