Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Release Engineering
Public
srpmproc
Commits
8db8d620
Commit
8db8d620
authored
Mar 17, 2021
by
Mustafa Gezen
Browse files
Fix spec append
parent
aa600cd5
Changes
6
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
8db8d620
...
...
@@ -15,3 +15,4 @@
# vendor/
testdata
srpmproc
.idea
internal/directives/spec_change.go
View file @
8db8d620
...
...
@@ -20,6 +20,10 @@ const (
sectionChangelog
=
"%changelog"
)
var
(
sections
=
[]
string
{
"%description"
,
"%prep"
,
"%build"
,
"%install"
,
"%files"
,
"%changelog"
}
)
type
sourcePatchOperationInLoopRequest
struct
{
cfg
*
srpmprocpb
.
Cfg
field
string
...
...
@@ -78,9 +82,23 @@ func sourcePatchOperationAfterLoop(req *sourcePatchOperationAfterLoopRequest) (b
switch
file
.
Mode
.
(
type
)
{
case
*
srpmprocpb
.
SpecChange_FileOperation_Add
:
field
:=
fmt
.
Sprintf
(
"%s%d"
,
req
.
expectedField
,
*
req
.
lastNum
+
1
)
fieldNum
:=
*
req
.
lastNum
+
1
field
:=
fmt
.
Sprintf
(
"%s%d"
,
req
.
expectedField
,
fieldNum
)
spaces
:=
calculateSpaces
(
req
.
longestField
,
len
(
field
))
*
req
.
newLines
=
append
(
*
req
.
newLines
,
fmt
.
Sprintf
(
"%s:%s%s"
,
field
,
spaces
,
file
.
Name
))
if
req
.
expectedField
==
"Patch"
&&
file
.
AddToPrep
{
val
:=
fmt
.
Sprintf
(
"%%patch%d"
,
fieldNum
)
if
file
.
NPath
>
0
{
val
=
fmt
.
Sprintf
(
"%s -p%d"
,
val
,
file
.
NPath
)
}
req
.
cfg
.
SpecChange
.
Append
=
append
(
req
.
cfg
.
SpecChange
.
Append
,
&
srpmprocpb
.
SpecChange_AppendOperation
{
Field
:
"%prep"
,
Value
:
val
,
})
}
*
req
.
lastNum
++
break
}
...
...
@@ -138,6 +156,16 @@ func setFASlice(futureAdditions map[int][]string, key int, addition string) {
futureAdditions
[
key
]
=
append
(
futureAdditions
[
key
],
addition
)
}
func
strSliceContains
(
slice
[]
string
,
str
string
)
bool
{
for
_
,
x
:=
range
slice
{
if
str
==
x
{
return
true
}
}
return
false
}
func
specChange
(
cfg
*
srpmprocpb
.
Cfg
,
pd
*
data
.
ProcessData
,
md
*
data
.
ModeData
,
_
*
git
.
Worktree
,
pushTree
*
git
.
Worktree
)
error
{
// no spec change operations present
// skip parsing spec
...
...
@@ -402,8 +430,8 @@ func specChange(cfg *srpmprocpb.Cfg, pd *data.ProcessData, md *data.ModeData, _
if
inSection
==
appendOp
.
Field
{
insertedLine
:=
0
for
i
,
x
:=
range
lines
[
lineNum
+
1
:
]
{
if
str
ings
.
HasPrefix
(
strings
.
TrimSpace
(
x
)
,
"%"
)
{
insertedLine
=
lineNum
+
i
+
2
if
str
SliceContains
(
sections
,
strings
.
TrimSpace
(
x
))
{
insertedLine
=
lineNum
+
i
setFASlice
(
futureAdditions
,
insertedLine
,
appendOp
.
Value
)
break
}
...
...
internal/patch.go
View file @
8db8d620
...
...
@@ -75,7 +75,7 @@ func executePatchesRpm(pd *data.ProcessData, md *data.ModeData) {
log
.
Fatalf
(
"could not get dist Worktree: %v"
,
err
)
}
remoteUrl
:=
fmt
.
Sprintf
(
"%s/patch/%s.git"
,
pd
.
UpstreamPrefix
,
md
.
RpmFile
.
Name
())
remoteUrl
:=
fmt
.
Sprintf
(
"%s/patch/%s.git"
,
pd
.
UpstreamPrefix
,
gitlabify
(
md
.
RpmFile
.
Name
())
)
refspec
:=
config
.
RefSpec
(
fmt
.
Sprintf
(
"+refs/heads/*:refs/remotes/origin/*"
))
_
,
err
=
repo
.
CreateRemote
(
&
config
.
RemoteConfig
{
...
...
@@ -125,13 +125,13 @@ func executePatchesRpm(pd *data.ProcessData, md *data.ModeData) {
}
}
func
getTipStream
(
pd
*
data
.
ProcessData
,
module
string
,
pushBranch
string
)
string
{
func
getTipStream
(
pd
*
data
.
ProcessData
,
module
string
,
pushBranch
string
,
origPushBranch
string
)
string
{
repo
,
err
:=
git
.
Init
(
memory
.
NewStorage
(),
memfs
.
New
())
if
err
!=
nil
{
log
.
Fatalf
(
"could not init git Repo: %v"
,
err
)
}
remoteUrl
:=
fmt
.
Sprintf
(
"%s/rpms/%s.git"
,
pd
.
UpstreamPrefix
,
module
)
remoteUrl
:=
fmt
.
Sprintf
(
"%s/rpms/%s.git"
,
pd
.
UpstreamPrefix
,
gitlabify
(
module
)
)
refspec
:=
config
.
RefSpec
(
"+refs/heads/*:refs/remotes/origin/*"
)
remote
,
err
:=
repo
.
CreateRemote
(
&
config
.
RemoteConfig
{
Name
:
"origin"
,
...
...
@@ -153,6 +153,27 @@ func getTipStream(pd *data.ProcessData, module string, pushBranch string) string
for
_
,
ref
:=
range
list
{
prefix
:=
fmt
.
Sprintf
(
"refs/heads/%s"
,
pushBranch
)
branchVersion
:=
strings
.
Split
(
pushBranch
,
"-"
)
if
len
(
branchVersion
)
==
3
{
version
:=
branchVersion
[
2
]
// incompatible pattern: v1,v2 etc.
// example can be found in refs/tags/imports/c8-stream-1.1/subversion-1.10-8030020200519083055.9ce6d490
if
strings
.
HasPrefix
(
version
,
"v"
)
{
prefix
=
strings
.
Replace
(
prefix
,
version
,
strings
.
TrimPrefix
(
version
,
"v"
),
1
)
}
}
log
.
Println
(
prefix
,
ref
.
Name
()
.
String
())
if
strings
.
HasPrefix
(
ref
.
Name
()
.
String
(),
prefix
)
{
tipHash
=
ref
.
Hash
()
.
String
()
}
}
for
_
,
ref
:=
range
list
{
prefix
:=
fmt
.
Sprintf
(
"refs/heads/%s"
,
origPushBranch
)
if
strings
.
HasPrefix
(
ref
.
Name
()
.
String
(),
prefix
)
{
tipHash
=
ref
.
Hash
()
.
String
()
}
...
...
@@ -213,7 +234,7 @@ func patchModuleYaml(pd *data.ProcessData, md *data.ModeData) {
}
rpm
.
Ref
=
pushBranch
tipHash
=
getTipStream
(
pd
,
name
,
pushBranch
)
tipHash
=
getTipStream
(
pd
,
name
,
pushBranch
,
md
.
PushBranch
)
err
=
module
.
Marshal
(
md
.
Worktree
.
Filesystem
,
mdTxtPath
)
if
err
!=
nil
{
...
...
internal/process.go
View file @
8db8d620
...
...
@@ -22,6 +22,10 @@ import (
var
tagImportRegex
*
regexp
.
Regexp
func
gitlabify
(
str
string
)
string
{
return
strings
.
Replace
(
str
,
"+"
,
"plus"
,
-
1
)
}
// ProcessRPM checks the RPM specs and discards any remote files
// This functions also sorts files into directories
// .spec files goes into -> SPECS
...
...
@@ -51,7 +55,7 @@ func ProcessRPM(pd *data.ProcessData) {
if
err
!=
nil
{
log
.
Fatalf
(
"could not init git Repo: %v"
,
err
)
}
remoteUrl
:=
fmt
.
Sprintf
(
"%s/%s/%s.git"
,
pd
.
UpstreamPrefix
,
remotePrefix
,
md
.
RpmFile
.
Name
())
remoteUrl
:=
fmt
.
Sprintf
(
"%s/%s/%s.git"
,
pd
.
UpstreamPrefix
,
remotePrefix
,
gitlabify
(
md
.
RpmFile
.
Name
())
)
refspec
:=
config
.
RefSpec
(
"+refs/heads/*:refs/remotes/origin/*"
)
remote
,
err
:=
repo
.
CreateRemote
(
&
config
.
RemoteConfig
{
...
...
@@ -141,7 +145,7 @@ func ProcessRPM(pd *data.ProcessData) {
}
// create a new remote
remoteUrl
:=
fmt
.
Sprintf
(
"%s/%s/%s.git"
,
pd
.
UpstreamPrefix
,
remotePrefix
,
rpmFile
.
Name
())
remoteUrl
:=
fmt
.
Sprintf
(
"%s/%s/%s.git"
,
pd
.
UpstreamPrefix
,
remotePrefix
,
gitlabify
(
rpmFile
.
Name
())
)
log
.
Printf
(
"using remote: %s"
,
remoteUrl
)
refspec
:=
config
.
RefSpec
(
fmt
.
Sprintf
(
"+refs/heads/%s:refs/remotes/origin/%s"
,
md
.
PushBranch
,
md
.
PushBranch
))
log
.
Printf
(
"using refspec: %s"
,
refspec
)
...
...
pb/cfg.pb.go
View file @
8db8d620
...
...
@@ -599,6 +599,9 @@ type SpecChange_FileOperation struct {
// *SpecChange_FileOperation_Add
// *SpecChange_FileOperation_Delete
Mode
isSpecChange_FileOperation_Mode
`protobuf_oneof:"mode"`
// Only works for patch type
AddToPrep
bool
`protobuf:"varint,5,opt,name=add_to_prep,json=addToPrep,proto3" json:"add_to_prep,omitempty"`
NPath
int32
`protobuf:"varint,6,opt,name=n_path,json=nPath,proto3" json:"n_path,omitempty"`
}
func
(
x
*
SpecChange_FileOperation
)
Reset
()
{
...
...
@@ -668,6 +671,20 @@ func (x *SpecChange_FileOperation) GetDelete() bool {
return
false
}
func
(
x
*
SpecChange_FileOperation
)
GetAddToPrep
()
bool
{
if
x
!=
nil
{
return
x
.
AddToPrep
}
return
false
}
func
(
x
*
SpecChange_FileOperation
)
GetNPath
()
int32
{
if
x
!=
nil
{
return
x
.
NPath
}
return
0
}
type
isSpecChange_FileOperation_Mode
interface
{
isSpecChange_FileOperation_Mode
()
}
...
...
@@ -1033,8 +1050,8 @@ var file_cfg_proto_rawDesc = []byte{
0x61
,
0x6d
,
0x65
,
0x18
,
0x03
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x0b
,
0x61
,
0x72
,
0x63
,
0x68
,
0x69
,
0x76
,
0x65
,
0x4e
,
0x61
,
0x6d
,
0x65
,
0x12
,
0x26
,
0x0a
,
0x0f
,
0x66
,
0x72
,
0x6f
,
0x6d
,
0x5f
,
0x70
,
0x61
,
0x74
,
0x63
,
0x68
,
0x5f
,
0x74
,
0x72
,
0x65
,
0x65
,
0x18
,
0x04
,
0x20
,
0x01
,
0x28
,
0x08
,
0x52
,
0x0d
,
0x66
,
0x72
,
0x6f
,
0x6d
,
0x50
,
0x61
,
0x74
,
0x63
,
0x68
,
0x54
,
0x72
,
0x65
,
0x65
,
0x22
,
0x
f7
,
0x0
7
,
0x0a
,
0x0a
,
0x53
,
0x70
,
0x65
,
0x63
,
0x43
,
0x68
,
0x61
,
0x6e
,
0x67
,
0x65
,
0x12
,
0x36
,
0x0a
,
0x0d
,
0x66
,
0x72
,
0x6f
,
0x6d
,
0x50
,
0x61
,
0x74
,
0x63
,
0x68
,
0x54
,
0x72
,
0x65
,
0x65
,
0x22
,
0x
ae
,
0x0
8
,
0x0a
,
0x0a
,
0x53
,
0x70
,
0x65
,
0x63
,
0x43
,
0x68
,
0x61
,
0x6e
,
0x67
,
0x65
,
0x12
,
0x36
,
0x0a
,
0x04
,
0x66
,
0x69
,
0x6c
,
0x65
,
0x18
,
0x01
,
0x20
,
0x03
,
0x28
,
0x0b
,
0x32
,
0x22
,
0x2e
,
0x73
,
0x72
,
0x70
,
0x6d
,
0x70
,
0x72
,
0x6f
,
0x63
,
0x2e
,
0x53
,
0x70
,
0x65
,
0x63
,
0x43
,
0x68
,
0x61
,
0x6e
,
0x67
,
0x65
,
0x2e
,
0x46
,
0x69
,
0x6c
,
0x65
,
0x4f
,
0x70
,
0x65
,
0x72
,
0x61
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x52
,
...
...
@@ -1056,7 +1073,7 @@ var file_cfg_proto_rawDesc = []byte{
0x66
,
0x69
,
0x65
,
0x6c
,
0x64
,
0x18
,
0x05
,
0x20
,
0x03
,
0x28
,
0x0b
,
0x32
,
0x26
,
0x2e
,
0x73
,
0x72
,
0x70
,
0x6d
,
0x70
,
0x72
,
0x6f
,
0x63
,
0x2e
,
0x53
,
0x70
,
0x65
,
0x63
,
0x43
,
0x68
,
0x61
,
0x6e
,
0x67
,
0x65
,
0x2e
,
0x4e
,
0x65
,
0x77
,
0x46
,
0x69
,
0x65
,
0x6c
,
0x64
,
0x4f
,
0x70
,
0x65
,
0x72
,
0x61
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x52
,
0x08
,
0x6e
,
0x65
,
0x77
,
0x46
,
0x69
,
0x65
,
0x6c
,
0x64
,
0x1a
,
0x
c2
,
0x01
,
0x69
,
0x6f
,
0x6e
,
0x52
,
0x08
,
0x6e
,
0x65
,
0x77
,
0x46
,
0x69
,
0x65
,
0x6c
,
0x64
,
0x1a
,
0x
f9
,
0x01
,
0x0a
,
0x0d
,
0x46
,
0x69
,
0x6c
,
0x65
,
0x4f
,
0x70
,
0x65
,
0x72
,
0x61
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x12
,
0x12
,
0x0a
,
0x04
,
0x6e
,
0x61
,
0x6d
,
0x65
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x04
,
0x6e
,
0x61
,
0x6d
,
0x65
,
0x12
,
0x3b
,
0x0a
,
0x04
,
0x74
,
0x79
,
0x70
,
0x65
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
...
...
@@ -1065,64 +1082,68 @@ var file_cfg_proto_rawDesc = []byte{
0x61
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x2e
,
0x54
,
0x79
,
0x70
,
0x65
,
0x52
,
0x04
,
0x74
,
0x79
,
0x70
,
0x65
,
0x12
,
0x12
,
0x0a
,
0x03
,
0x61
,
0x64
,
0x64
,
0x18
,
0x03
,
0x20
,
0x01
,
0x28
,
0x08
,
0x48
,
0x00
,
0x52
,
0x03
,
0x61
,
0x64
,
0x64
,
0x12
,
0x18
,
0x0a
,
0x06
,
0x64
,
0x65
,
0x6c
,
0x65
,
0x74
,
0x65
,
0x18
,
0x04
,
0x20
,
0x01
,
0x28
,
0x08
,
0x48
,
0x00
,
0x52
,
0x06
,
0x64
,
0x65
,
0x6c
,
0x65
,
0x74
,
0x65
,
0x22
,
0x2a
,
0x0a
,
0x04
,
0x54
,
0x79
,
0x70
,
0x65
,
0x12
,
0x0b
,
0x0a
,
0x07
,
0x55
,
0x6e
,
0x6b
,
0x6e
,
0x6f
,
0x77
,
0x6e
,
0x10
,
0x00
,
0x12
,
0x0a
,
0x0a
,
0x06
,
0x53
,
0x6f
,
0x75
,
0x72
,
0x63
,
0x65
,
0x10
,
0x01
,
0x12
,
0x09
,
0x0a
,
0x05
,
0x50
,
0x61
,
0x74
,
0x63
,
0x68
,
0x10
,
0x02
,
0x42
,
0x06
,
0x0a
,
0x04
,
0x6d
,
0x6f
,
0x64
,
0x65
,
0x1a
,
0x72
,
0x0a
,
0x12
,
0x43
,
0x68
,
0x61
,
0x6e
,
0x67
,
0x65
,
0x6c
,
0x6f
,
0x67
,
0x4f
,
0x70
,
0x65
,
0x72
,
0x61
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x12
,
0x1f
,
0x0a
,
0x0b
,
0x61
,
0x75
,
0x74
,
0x68
,
0x6f
,
0x72
,
0x5f
,
0x6e
,
0x61
,
0x6d
,
0x65
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x0a
,
0x61
,
0x75
,
0x74
,
0x68
,
0x6f
,
0x72
,
0x4e
,
0x61
,
0x6d
,
0x65
,
0x12
,
0x21
,
0x0a
,
0x0c
,
0x61
,
0x75
,
0x74
,
0x68
,
0x6f
,
0x72
,
0x5f
,
0x65
,
0x6d
,
0x61
,
0x69
,
0x6c
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x0b
,
0x61
,
0x75
,
0x74
,
0x68
,
0x6f
,
0x72
,
0x45
,
0x6d
,
0x61
,
0x69
,
0x6c
,
0x12
,
0x18
,
0x0a
,
0x07
,
0x6d
,
0x65
,
0x73
,
0x73
,
0x61
,
0x67
,
0x65
,
0x18
,
0x03
,
0x20
,
0x03
,
0x28
,
0x09
,
0x52
,
0x07
,
0x6d
,
0x65
,
0x73
,
0x73
,
0x61
,
0x67
,
0x65
,
0x1a
,
0xd3
,
0x01
,
0x0a
,
0x19
,
0x53
,
0x65
,
0x61
,
0x72
,
0x63
,
0x68
,
0x41
,
0x6e
,
0x64
,
0x52
,
0x65
,
0x70
,
0x6c
,
0x61
,
0x63
,
0x65
,
0x4f
,
0x70
,
0x65
,
0x72
,
0x61
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x12
,
0x16
,
0x0a
,
0x05
,
0x66
,
0x69
,
0x65
,
0x6c
,
0x64
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x09
,
0x48
,
0x00
,
0x52
,
0x05
,
0x66
,
0x69
,
0x65
,
0x6c
,
0x64
,
0x12
,
0x12
,
0x0a
,
0x03
,
0x61
,
0x6e
,
0x79
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x08
,
0x48
,
0x00
,
0x52
,
0x03
,
0x61
,
0x6e
,
0x79
,
0x12
,
0x21
,
0x0a
,
0x0b
,
0x73
,
0x74
,
0x61
,
0x72
,
0x74
,
0x73
,
0x5f
,
0x77
,
0x69
,
0x74
,
0x68
,
0x18
,
0x03
,
0x20
,
0x01
,
0x28
,
0x08
,
0x48
,
0x00
,
0x52
,
0x0a
,
0x73
,
0x74
,
0x61
,
0x72
,
0x74
,
0x73
,
0x57
,
0x69
,
0x74
,
0x68
,
0x12
,
0x1d
,
0x0a
,
0x09
,
0x65
,
0x6e
,
0x64
,
0x73
,
0x5f
,
0x77
,
0x69
,
0x74
,
0x68
,
0x18
,
0x04
,
0x20
,
0x01
,
0x28
,
0x08
,
0x48
,
0x00
,
0x52
,
0x08
,
0x65
,
0x6e
,
0x64
,
0x73
,
0x57
,
0x69
,
0x74
,
0x68
,
0x12
,
0x12
,
0x0a
,
0x04
,
0x66
,
0x69
,
0x6e
,
0x64
,
0x18
,
0x05
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x04
,
0x66
,
0x69
,
0x6e
,
0x64
,
0x12
,
0x18
,
0x0a
,
0x07
,
0x72
,
0x65
,
0x70
,
0x6c
,
0x61
,
0x63
,
0x65
,
0x18
,
0x06
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x07
,
0x72
,
0x65
,
0x70
,
0x6c
,
0x61
,
0x63
,
0x65
,
0x12
,
0x0c
,
0x0a
,
0x01
,
0x6e
,
0x18
,
0x07
,
0x20
,
0x01
,
0x28
,
0x11
,
0x52
,
0x01
,
0x6e
,
0x42
,
0x0c
,
0x0a
,
0x0a
,
0x69
,
0x64
,
0x65
,
0x6e
,
0x74
,
0x69
,
0x66
,
0x69
,
0x65
,
0x72
,
0x1a
,
0x3d
,
0x0a
,
0x0f
,
0x41
,
0x70
,
0x70
,
0x65
,
0x6e
,
0x64
,
0x4f
,
0x70
,
0x65
,
0x72
,
0x61
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x12
,
0x14
,
0x0a
,
0x05
,
0x66
,
0x69
,
0x65
,
0x6c
,
0x64
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x05
,
0x66
,
0x69
,
0x65
,
0x6c
,
0x64
,
0x12
,
0x14
,
0x0a
,
0x05
,
0x76
,
0x61
,
0x6c
,
0x75
,
0x65
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x05
,
0x76
,
0x61
,
0x6c
,
0x75
,
0x65
,
0x1a
,
0x3b
,
0x0a
,
0x11
,
0x4e
,
0x65
,
0x77
,
0x46
,
0x69
,
0x65
,
0x6c
,
0x64
,
0x4f
,
0x70
,
0x65
,
0x72
,
0x61
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x12
,
0x10
,
0x0a
,
0x03
,
0x6b
,
0x65
,
0x79
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x03
,
0x6b
,
0x65
,
0x79
,
0x12
,
0x14
,
0x0a
,
0x05
,
0x76
,
0x61
,
0x6c
,
0x75
,
0x65
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x05
,
0x76
,
0x61
,
0x6c
,
0x75
,
0x65
,
0x22
,
0x33
,
0x0a
,
0x05
,
0x50
,
0x61
,
0x74
,
0x63
,
0x68
,
0x12
,
0x12
,
0x0a
,
0x04
,
0x66
,
0x69
,
0x6c
,
0x65
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x04
,
0x66
,
0x69
,
0x6c
,
0x65
,
0x12
,
0x16
,
0x0a
,
0x06
,
0x73
,
0x74
,
0x72
,
0x69
,
0x63
,
0x74
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x08
,
0x52
,
0x06
,
0x73
,
0x74
,
0x72
,
0x69
,
0x63
,
0x74
,
0x22
,
0x8e
,
0x02
,
0x0a
,
0x03
,
0x43
,
0x66
,
0x67
,
0x12
,
0x2b
,
0x0a
,
0x07
,
0x72
,
0x65
,
0x70
,
0x6c
,
0x61
,
0x63
,
0x65
,
0x18
,
0x01
,
0x20
,
0x03
,
0x28
,
0x0b
,
0x32
,
0x11
,
0x2e
,
0x73
,
0x72
,
0x70
,
0x6d
,
0x70
,
0x72
,
0x6f
,
0x63
,
0x2e
,
0x52
,
0x65
,
0x70
,
0x6c
,
0x61
,
0x63
,
0x65
,
0x52
,
0x07
,
0x72
,
0x65
,
0x70
,
0x6c
,
0x61
,
0x63
,
0x65
,
0x12
,
0x28
,
0x0a
,
0x06
,
0x64
,
0x65
,
0x6c
,
0x65
,
0x74
,
0x65
,
0x18
,
0x02
,
0x20
,
0x03
,
0x28
,
0x0b
,
0x32
,
0x10
,
0x2e
,
0x73
,
0x72
,
0x70
,
0x6d
,
0x70
,
0x72
,
0x6f
,
0x63
,
0x2e
,
0x44
,
0x65
,
0x6c
,
0x65
,
0x74
,
0x65
,
0x52
,
0x06
,
0x64
,
0x65
,
0x6c
,
0x65
,
0x74
,
0x65
,
0x12
,
0x1f
,
0x0a
,
0x03
,
0x61
,
0x64
,
0x64
,
0x18
,
0x03
,
0x20
,
0x03
,
0x28
,
0x0b
,
0x32
,
0x0d
,
0x2e
,
0x73
,
0x72
,
0x70
,
0x6d
,
0x70
,
0x72
,
0x6f
,
0x63
,
0x2e
,
0x41
,
0x64
,
0x64
,
0x52
,
0x03
,
0x61
,
0x64
,
0x64
,
0x12
,
0x31
,
0x0a
,
0x09
,
0x6c
,
0x6f
,
0x6f
,
0x6b
,
0x61
,
0x73
,
0x69
,
0x64
,
0x65
,
0x18
,
0x04
,
0x20
,
0x03
,
0x28
,
0x0b
,
0x32
,
0x13
,
0x2e
,
0x73
,
0x72
,
0x70
,
0x6d
,
0x70
,
0x72
,
0x6f
,
0x63
,
0x2e
,
0x4c
,
0x6f
,
0x6f
,
0x6b
,
0x61
,
0x73
,
0x69
,
0x64
,
0x65
,
0x52
,
0x09
,
0x6c
,
0x6f
,
0x6f
,
0x6b
,
0x61
,
0x73
,
0x69
,
0x64
,
0x65
,
0x12
,
0x35
,
0x0a
,
0x0b
,
0x73
,
0x70
,
0x65
,
0x63
,
0x5f
,
0x63
,
0x68
,
0x61
,
0x6e
,
0x67
,
0x65
,
0x18
,
0x05
,
0x20
,
0x01
,
0x28
,
0x0b
,
0x32
,
0x14
,
0x2e
,
0x73
,
0x72
,
0x70
,
0x6d
,
0x70
,
0x72
,
0x6f
,
0x63
,
0x2e
,
0x53
,
0x70
,
0x65
,
0x63
,
0x43
,
0x68
,
0x61
,
0x6e
,
0x67
,
0x65
,
0x52
,
0x0a
,
0x73
,
0x70
,
0x65
,
0x63
,
0x43
,
0x68
,
0x61
,
0x6e
,
0x67
,
0x65
,
0x12
,
0x25
,
0x0a
,
0x05
,
0x70
,
0x61
,
0x74
,
0x63
,
0x68
,
0x18
,
0x06
,
0x20
,
0x03
,
0x28
,
0x0b
,
0x32
,
0x0f
,
0x2e
,
0x73
,
0x72
,
0x70
,
0x6d
,
0x70
,
0x72
,
0x6f
,
0x63
,
0x2e
,
0x50
,
0x61
,
0x74
,
0x63
,
0x68
,
0x52
,
0x05
,
0x70
,
0x61
,
0x74
,
0x63
,
0x68
,
0x42
,
0x46
,
0x5a
,
0x44
,
0x67
,
0x69
,
0x74
,
0x2e
,
0x72
,
0x6f
,
0x63
,
0x6b
,
0x79
,
0x6c
,
0x69
,
0x6e
,
0x75
,
0x78
,
0x2e
,
0x6f
,
0x72
,
0x67
,
0x2f
,
0x72
,
0x65
,
0x6c
,
0x65
,
0x61
,
0x73
,
0x65
,
0x2d
,
0x65
,
0x6e
,
0x67
,
0x69
,
0x6e
,
0x65
,
0x65
,
0x72
,
0x69
,
0x6e
,
0x67
,
0x2f
,
0x70
,
0x75
,
0x62
,
0x6c
,
0x69
,
0x63
,
0x2f
,
0x73
,
0x72
,
0x70
,
0x6d
,
0x70
,
0x72
,
0x6f
,
0x63
,
0x2f
,
0x70
,
0x62
,
0x3b
,
0x73
,
0x72
,
0x70
,
0x6d
,
0x70
,
0x72
,
0x6f
,
0x63
,
0x70
,
0x62
,
0x62
,
0x06
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x33
,
0x20
,
0x01
,
0x28
,
0x08
,
0x48
,
0x00
,
0x52
,
0x06
,
0x64
,
0x65
,
0x6c
,
0x65
,
0x74
,
0x65
,
0x12
,
0x1e
,
0x0a
,
0x0b
,
0x61
,
0x64
,
0x64
,
0x5f
,
0x74
,
0x6f
,
0x5f
,
0x70
,
0x72
,
0x65
,
0x70
,
0x18
,
0x05
,
0x20
,
0x01
,
0x28
,
0x08
,
0x52
,
0x09
,
0x61
,
0x64
,
0x64
,
0x54
,
0x6f
,
0x50
,
0x72
,
0x65
,
0x70
,
0x12
,
0x15
,
0x0a
,
0x06
,
0x6e
,
0x5f
,
0x70
,
0x61
,
0x74
,
0x68
,
0x18
,
0x06
,
0x20
,
0x01
,
0x28
,
0x05
,
0x52
,
0x05
,
0x6e
,
0x50
,
0x61
,
0x74
,
0x68
,
0x22
,
0x2a
,
0x0a
,
0x04
,
0x54
,
0x79
,
0x70
,
0x65
,
0x12
,
0x0b
,
0x0a
,
0x07
,
0x55
,
0x6e
,
0x6b
,
0x6e
,
0x6f
,
0x77
,
0x6e
,
0x10
,
0x00
,
0x12
,
0x0a
,
0x0a
,
0x06
,
0x53
,
0x6f
,
0x75
,
0x72
,
0x63
,
0x65
,
0x10
,
0x01
,
0x12
,
0x09
,
0x0a
,
0x05
,
0x50
,
0x61
,
0x74
,
0x63
,
0x68
,
0x10
,
0x02
,
0x42
,
0x06
,
0x0a
,
0x04
,
0x6d
,
0x6f
,
0x64
,
0x65
,
0x1a
,
0x72
,
0x0a
,
0x12
,
0x43
,
0x68
,
0x61
,
0x6e
,
0x67
,
0x65
,
0x6c
,
0x6f
,
0x67
,
0x4f
,
0x70
,
0x65
,
0x72
,
0x61
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x12
,
0x1f
,
0x0a
,
0x0b
,
0x61
,
0x75
,
0x74
,
0x68
,
0x6f
,
0x72
,
0x5f
,
0x6e
,
0x61
,
0x6d
,
0x65
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x0a
,
0x61
,
0x75
,
0x74
,
0x68
,
0x6f
,
0x72
,
0x4e
,
0x61
,
0x6d
,
0x65
,
0x12
,
0x21
,
0x0a
,
0x0c
,
0x61
,
0x75
,
0x74
,
0x68
,
0x6f
,
0x72
,
0x5f
,
0x65
,
0x6d
,
0x61
,
0x69
,
0x6c
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x0b
,
0x61
,
0x75
,
0x74
,
0x68
,
0x6f
,
0x72
,
0x45
,
0x6d
,
0x61
,
0x69
,
0x6c
,
0x12
,
0x18
,
0x0a
,
0x07
,
0x6d
,
0x65
,
0x73
,
0x73
,
0x61
,
0x67
,
0x65
,
0x18
,
0x03
,
0x20
,
0x03
,
0x28
,
0x09
,
0x52
,
0x07
,
0x6d
,
0x65
,
0x73
,
0x73
,
0x61
,
0x67
,
0x65
,
0x1a
,
0xd3
,
0x01
,
0x0a
,
0x19
,
0x53
,
0x65
,
0x61
,
0x72
,
0x63
,
0x68
,
0x41
,
0x6e
,
0x64
,
0x52
,
0x65
,
0x70
,
0x6c
,
0x61
,
0x63
,
0x65
,
0x4f
,
0x70
,
0x65
,
0x72
,
0x61
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x12
,
0x16
,
0x0a
,
0x05
,
0x66
,
0x69
,
0x65
,
0x6c
,
0x64
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x09
,
0x48
,
0x00
,
0x52
,
0x05
,
0x66
,
0x69
,
0x65
,
0x6c
,
0x64
,
0x12
,
0x12
,
0x0a
,
0x03
,
0x61
,
0x6e
,
0x79
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x08
,
0x48
,
0x00
,
0x52
,
0x03
,
0x61
,
0x6e
,
0x79
,
0x12
,
0x21
,
0x0a
,
0x0b
,
0x73
,
0x74
,
0x61
,
0x72
,
0x74
,
0x73
,
0x5f
,
0x77
,
0x69
,
0x74
,
0x68
,
0x18
,
0x03
,
0x20
,
0x01
,
0x28
,
0x08
,
0x48
,
0x00
,
0x52
,
0x0a
,
0x73
,
0x74
,
0x61
,
0x72
,
0x74
,
0x73
,
0x57
,
0x69
,
0x74
,
0x68
,
0x12
,
0x1d
,
0x0a
,
0x09
,
0x65
,
0x6e
,
0x64
,
0x73
,
0x5f
,
0x77
,
0x69
,
0x74
,
0x68
,
0x18
,
0x04
,
0x20
,
0x01
,
0x28
,
0x08
,
0x48
,
0x00
,
0x52
,
0x08
,
0x65
,
0x6e
,
0x64
,
0x73
,
0x57
,
0x69
,
0x74
,
0x68
,
0x12
,
0x12
,
0x0a
,
0x04
,
0x66
,
0x69
,
0x6e
,
0x64
,
0x18
,
0x05
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x04
,
0x66
,
0x69
,
0x6e
,
0x64
,
0x12
,
0x18
,
0x0a
,
0x07
,
0x72
,
0x65
,
0x70
,
0x6c
,
0x61
,
0x63
,
0x65
,
0x18
,
0x06
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x07
,
0x72
,
0x65
,
0x70
,
0x6c
,
0x61
,
0x63
,
0x65
,
0x12
,
0x0c
,
0x0a
,
0x01
,
0x6e
,
0x18
,
0x07
,
0x20
,
0x01
,
0x28
,
0x11
,
0x52
,
0x01
,
0x6e
,
0x42
,
0x0c
,
0x0a
,
0x0a
,
0x69
,
0x64
,
0x65
,
0x6e
,
0x74
,
0x69
,
0x66
,
0x69
,
0x65
,
0x72
,
0x1a
,
0x3d
,
0x0a
,
0x0f
,
0x41
,
0x70
,
0x70
,
0x65
,
0x6e
,
0x64
,
0x4f
,
0x70
,
0x65
,
0x72
,
0x61
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x12
,
0x14
,
0x0a
,
0x05
,
0x66
,
0x69
,
0x65
,
0x6c
,
0x64
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x05
,
0x66
,
0x69
,
0x65
,
0x6c
,
0x64
,
0x12
,
0x14
,
0x0a
,
0x05
,
0x76
,
0x61
,
0x6c
,
0x75
,
0x65
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x05
,
0x76
,
0x61
,
0x6c
,
0x75
,
0x65
,
0x1a
,
0x3b
,
0x0a
,
0x11
,
0x4e
,
0x65
,
0x77
,
0x46
,
0x69
,
0x65
,
0x6c
,
0x64
,
0x4f
,
0x70
,
0x65
,
0x72
,
0x61
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x12
,
0x10
,
0x0a
,
0x03
,
0x6b
,
0x65
,
0x79
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x03
,
0x6b
,
0x65
,
0x79
,
0x12
,
0x14
,
0x0a
,
0x05
,
0x76
,
0x61
,
0x6c
,
0x75
,
0x65
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x05
,
0x76
,
0x61
,
0x6c
,
0x75
,
0x65
,
0x22
,
0x33
,
0x0a
,
0x05
,
0x50
,
0x61
,
0x74
,
0x63
,
0x68
,
0x12
,
0x12
,
0x0a
,
0x04
,
0x66
,
0x69
,
0x6c
,
0x65
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x04
,
0x66
,
0x69
,
0x6c
,
0x65
,
0x12
,
0x16
,
0x0a
,
0x06
,
0x73
,
0x74
,
0x72
,
0x69
,
0x63
,
0x74
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x08
,
0x52
,
0x06
,
0x73
,
0x74
,
0x72
,
0x69
,
0x63
,
0x74
,
0x22
,
0x8e
,
0x02
,
0x0a
,
0x03
,
0x43
,
0x66
,
0x67
,
0x12
,
0x2b
,
0x0a
,
0x07
,
0x72
,
0x65
,
0x70
,
0x6c
,
0x61
,
0x63
,
0x65
,
0x18
,
0x01
,
0x20
,
0x03
,
0x28
,
0x0b
,
0x32
,
0x11
,
0x2e
,
0x73
,
0x72
,
0x70
,
0x6d
,
0x70
,
0x72
,
0x6f
,
0x63
,
0x2e
,
0x52
,
0x65
,
0x70
,
0x6c
,
0x61
,
0x63
,
0x65
,
0x52
,
0x07
,
0x72
,
0x65
,
0x70
,
0x6c
,
0x61
,
0x63
,
0x65
,
0x12
,
0x28
,
0x0a
,
0x06
,
0x64
,
0x65
,
0x6c
,
0x65
,
0x74
,
0x65
,
0x18
,
0x02
,
0x20
,
0x03
,
0x28
,
0x0b
,
0x32
,
0x10
,
0x2e
,
0x73
,
0x72
,
0x70
,
0x6d
,
0x70
,
0x72
,
0x6f
,
0x63
,
0x2e
,
0x44
,
0x65
,
0x6c
,
0x65
,
0x74
,
0x65
,
0x52
,
0x06
,
0x64
,
0x65
,
0x6c
,
0x65
,
0x74
,
0x65
,
0x12
,
0x1f
,
0x0a
,
0x03
,
0x61
,
0x64
,
0x64
,
0x18
,
0x03
,
0x20
,
0x03
,
0x28
,
0x0b
,
0x32
,
0x0d
,
0x2e
,
0x73
,
0x72
,
0x70
,
0x6d
,
0x70
,
0x72
,
0x6f
,
0x63
,
0x2e
,
0x41
,
0x64
,
0x64
,
0x52
,
0x03
,
0x61
,
0x64
,
0x64
,
0x12
,
0x31
,
0x0a
,
0x09
,
0x6c
,
0x6f
,
0x6f
,
0x6b
,
0x61
,
0x73
,
0x69
,
0x64
,
0x65
,
0x18
,
0x04
,
0x20
,
0x03
,
0x28
,
0x0b
,
0x32
,
0x13
,
0x2e
,
0x73
,
0x72
,
0x70
,
0x6d
,
0x70
,
0x72
,
0x6f
,
0x63
,
0x2e
,
0x4c
,
0x6f
,
0x6f
,
0x6b
,
0x61
,
0x73
,
0x69
,
0x64
,
0x65
,
0x52
,
0x09
,
0x6c
,
0x6f
,
0x6f
,
0x6b
,
0x61
,
0x73
,
0x69
,
0x64
,
0x65
,
0x12
,
0x35
,
0x0a
,
0x0b
,
0x73
,
0x70
,
0x65
,
0x63
,
0x5f
,
0x63
,
0x68
,
0x61
,
0x6e
,
0x67
,
0x65
,
0x18
,
0x05
,
0x20
,
0x01
,
0x28
,
0x0b
,
0x32
,
0x14
,
0x2e
,
0x73
,
0x72
,
0x70
,
0x6d
,
0x70
,
0x72
,
0x6f
,
0x63
,
0x2e
,
0x53
,
0x70
,
0x65
,
0x63
,
0x43
,
0x68
,
0x61
,
0x6e
,
0x67
,
0x65
,
0x52
,
0x0a
,
0x73
,
0x70
,
0x65
,
0x63
,
0x43
,
0x68
,
0x61
,
0x6e
,
0x67
,
0x65
,
0x12
,
0x25
,
0x0a
,
0x05
,
0x70
,
0x61
,
0x74
,
0x63
,
0x68
,
0x18
,
0x06
,
0x20
,
0x03
,
0x28
,
0x0b
,
0x32
,
0x0f
,
0x2e
,
0x73
,
0x72
,
0x70
,
0x6d
,
0x70
,
0x72
,
0x6f
,
0x63
,
0x2e
,
0x50
,
0x61
,
0x74
,
0x63
,
0x68
,
0x52
,
0x05
,
0x70
,
0x61
,
0x74
,
0x63
,
0x68
,
0x42
,
0x46
,
0x5a
,
0x44
,
0x67
,
0x69
,
0x74
,
0x2e
,
0x72
,
0x6f
,
0x63
,
0x6b
,
0x79
,
0x6c
,
0x69
,
0x6e
,
0x75
,
0x78
,
0x2e
,
0x6f
,
0x72
,
0x67
,
0x2f
,
0x72
,
0x65
,
0x6c
,
0x65
,
0x61
,
0x73
,
0x65
,
0x2d
,
0x65
,
0x6e
,
0x67
,
0x69
,
0x6e
,
0x65
,
0x65
,
0x72
,
0x69
,
0x6e
,
0x67
,
0x2f
,
0x70
,
0x75
,
0x62
,
0x6c
,
0x69
,
0x63
,
0x2f
,
0x73
,
0x72
,
0x70
,
0x6d
,
0x70
,
0x72
,
0x6f
,
0x63
,
0x2f
,
0x70
,
0x62
,
0x3b
,
0x73
,
0x72
,
0x70
,
0x6d
,
0x70
,
0x72
,
0x6f
,
0x63
,
0x70
,
0x62
,
0x62
,
0x06
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x33
,
}
var
(
...
...
proto/cfg.proto
View file @
8db8d620
...
...
@@ -80,6 +80,10 @@ message SpecChange {
// Use the `Delete` directive for that
bool
delete
=
4
;
}
// Only works for patch type
bool
add_to_prep
=
5
;
int32
n_path
=
6
;
}
// ChangelogOperation adds a new changelog entry
message
ChangelogOperation
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment