add bundle git tag from pack.sh into builtin_actors_gen
This commit is contained in:
@@ -20,6 +20,7 @@ var EmbeddedBuiltinActorsMetadata []*BuiltinActorsMetadata = []*BuiltinActorsMet
|
||||
{{- range . }} {
|
||||
Network: {{printf "%q" .Network}},
|
||||
Version: {{.Version}},
|
||||
{{if .BundleGitTag}} BundleGitTag: {{printf "%q" .BundleGitTag}}, {{end}}
|
||||
ManifestCid: MustParseCid({{printf "%q" .ManifestCid}}),
|
||||
Actors: map[string]cid.Cid {
|
||||
{{- range $name, $cid := .Actors }}
|
||||
@@ -37,6 +38,12 @@ func main() {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
if len(os.Args) > 1 {
|
||||
for _, m := range metadata {
|
||||
m.BundleGitTag = os.Args[1]
|
||||
}
|
||||
}
|
||||
|
||||
fi, err := os.Create("./build/builtin_actors_gen.go")
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
||||
Reference in New Issue
Block a user