Skip to content

Commit

Permalink
removeme: double check gen jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentsenta committed Jul 2, 2024
1 parent 37c6142 commit c557500
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions gen/gen.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package main

import (
"os"

"github.com/filecoin-project/go-state-types/builtin"
gen "github.com/whyrusleeping/cbor-gen"

Expand All @@ -22,4 +24,15 @@ func main() {
); err != nil {
panic(err)
}

// now append the string "'// helloworld" to the builtin/cbor_gen.go file:
// use regular go api to open the file and write to it:
f, err := os.OpenFile("./builtin/cbor_gen.go", os.O_APPEND|os.O_WRONLY, 0644)
if err != nil {
panic(err)
}
defer f.Close()
if _, err := f.WriteString("\n// helloworld\n"); err != nil {
panic(err)
}
}

0 comments on commit c557500

Please sign in to comment.