@@ -179,6 +179,8 @@ func (a *HomebrewDependency) UnmarshalYAML(unmarshal func(interface{}) error) er
179
179
180
180
a .Name = dep .Name
181
181
a .Type = dep .Type
182
+ a .Version = dep .Version
183
+ a .OS = dep .OS
182
184
183
185
return nil
184
186
}
@@ -459,10 +461,10 @@ type Build struct {
459
461
Hooks BuildHookConfig `yaml:"hooks,omitempty" json:"hooks,omitempty"`
460
462
Builder string `yaml:"builder,omitempty" json:"builder,omitempty"`
461
463
ModTimestamp string `yaml:"mod_timestamp,omitempty" json:"mod_timestamp,omitempty"`
462
- Skip bool `yaml:"skip,omitempty" json:"skip,omitempty"`
464
+ Skip string `yaml:"skip,omitempty" json:"skip,omitempty" jsonschema:"oneof_type=string;boolean "`
463
465
GoBinary string `yaml:"gobinary,omitempty" json:"gobinary,omitempty"`
464
466
Command string `yaml:"command,omitempty" json:"command,omitempty"`
465
- NoUniqueDistDir bool `yaml:"no_unique_dist_dir,omitempty" json:"no_unique_dist_dir,omitempty"`
467
+ NoUniqueDistDir string `yaml:"no_unique_dist_dir,omitempty" json:"no_unique_dist_dir,omitempty" jsonschema:"oneof_type=string;boolean "`
466
468
NoMainCheck bool `yaml:"no_main_check,omitempty" json:"no_main_check,omitempty"`
467
469
UnproxiedMain string `yaml:"-" json:"-"` // used by gomod.proxy
468
470
UnproxiedDir string `yaml:"-" json:"-"` // used by gomod.proxy
@@ -707,7 +709,7 @@ type NFPM struct {
707
709
708
710
ID string `yaml:"id,omitempty" json:"id,omitempty"`
709
711
Builds []string `yaml:"builds,omitempty" json:"builds,omitempty"`
710
- Formats []string `yaml:"formats,omitempty" json:"formats,omitempty" jsonschema:"enum=apk,enum=deb,enum=rpm,enum=termux.deb,enum=archlinux"`
712
+ Formats []string `yaml:"formats,omitempty" json:"formats,omitempty" jsonschema:"enum=apk,enum=deb,enum=rpm,enum=termux.deb,enum=archlinux,enum=ipk "`
711
713
Section string `yaml:"section,omitempty" json:"section,omitempty"`
712
714
Priority string `yaml:"priority,omitempty" json:"priority,omitempty"`
713
715
Vendor string `yaml:"vendor,omitempty" json:"vendor,omitempty"`
@@ -900,6 +902,7 @@ type Sign struct {
900
902
Signature string `yaml:"signature,omitempty" json:"signature,omitempty"`
901
903
Artifacts string `yaml:"artifacts,omitempty" json:"artifacts,omitempty" jsonschema:"enum=all,enum=manifests,enum=images,enum=checksum,enum=source,enum=package,enum=archive,enum=binary,enum=sbom,enum=installer,enum=diskimage"`
902
904
IDs []string `yaml:"ids,omitempty" json:"ids,omitempty"`
905
+ If string `yaml:"if,omitempty" json:"if,omitempty"`
903
906
Stdin * string `yaml:"stdin,omitempty" json:"stdin,omitempty"`
904
907
StdinFile string `yaml:"stdin_file,omitempty" json:"stdin_file,omitempty"`
905
908
Env []string `yaml:"env,omitempty" json:"env,omitempty"`
@@ -989,7 +992,7 @@ type Snapcraft struct {
989
992
License string `yaml:"license,omitempty" json:"license,omitempty"`
990
993
Grade string `yaml:"grade,omitempty" json:"grade,omitempty" jsonschema:"enum=stable,enum=devel,default=stable"`
991
994
ChannelTemplates []string `yaml:"channel_templates,omitempty" json:"channel_templates,omitempty"`
992
- Confinement string `yaml:"confinement,omitempty" json:"confinement,omitempty" jsonschema:"enum=strict,enum=classic,enum=devmode,classic =strict"`
995
+ Confinement string `yaml:"confinement,omitempty" json:"confinement,omitempty" jsonschema:"enum=strict,enum=classic,enum=devmode,default =strict"`
993
996
Assumes []string `yaml:"assumes,omitempty" json:"assumes,omitempty"`
994
997
Layout map [string ]SnapcraftLayoutMetadata `yaml:"layout,omitempty" json:"layout,omitempty"`
995
998
Apps map [string ]SnapcraftAppMetadata `yaml:"apps,omitempty" json:"apps,omitempty"`
@@ -1012,11 +1015,15 @@ type SnapcraftExtraFiles struct {
1012
1015
1013
1016
// Snapshot config.
1014
1017
type Snapshot struct {
1015
- NameTemplate string `yaml:"name_template,omitempty" json:"name_template,omitempty"`
1018
+ // Deprecated: use VersionTemplate.
1019
+ NameTemplate string `yaml:"name_template,omitempty" json:"name_template,omitempty"`
1020
+ VersionTemplate string `yaml:"version_template,omitempty" json:"version_template,omitempty"`
1016
1021
}
1017
1022
1018
1023
// Nightly config.
1019
1024
type Nightly struct { // pro only
1025
+ VersionTemplate string `yaml:"version_template,omitempty" json:"version_template,omitempty"`
1026
+ // Deprecated: use VersionTemplate.
1020
1027
NameTemplate string `yaml:"name_template,omitempty" json:"name_template,omitempty"`
1021
1028
TagName string `yaml:"tag_name,omitempty" json:"tag_name,omitempty"`
1022
1029
PublishRelease bool `yaml:"publish_release,omitempty" json:"publish_release,omitempty"`
@@ -1184,6 +1191,7 @@ type Blob struct {
1184
1191
1185
1192
// pro-only
1186
1193
TemplatedExtraFiles []TemplatedExtraFile `yaml:"templated_extra_files,omitempty" json:"templated_extra_files,omitempty"`
1194
+ If string `yaml:"if,omitempty" json:"if,omitempty"`
1187
1195
}
1188
1196
1189
1197
// Upload configuration.
@@ -1274,6 +1282,7 @@ type Project struct {
1274
1282
Signs []Sign `yaml:"signs,omitempty" json:"signs,omitempty"`
1275
1283
Notarize Notarize `yaml:"notarize,omitempty" json:"notarize,omitempty"`
1276
1284
DockerSigns []Sign `yaml:"docker_signs,omitempty" json:"docker_signs,omitempty"`
1285
+ BinarySigns []Sign `yaml:"binary_signs,omitempty" json:"binary_signs,omitempty"`
1277
1286
EnvFiles EnvFiles `yaml:"env_files,omitempty" json:"env_files,omitempty"`
1278
1287
Before Before `yaml:"before,omitempty" json:"before,omitempty"`
1279
1288
After After `yaml:"after,omitempty" json:"after,omitempty"`
0 commit comments