MCPcopy Create free account
hub / github.com/docker/secrets-engine / main

Function main

x/release/main.go:26–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24)
25
26func main() {
27 ctx, cancel := oshelper.NotifyContext(context.Background(), syscall.SIGTERM, syscall.SIGINT)
28 defer cancel()
29
30 cmd, err := ReleaseCommand(Config{EnableModulesWithPreReleaseVersion: []string{"x"}, BeforeCommitHook: makeMod})
31 if err != nil {
32 panic(err)
33 }
34 cmd.SetContext(ctx)
35 if err := cmd.Execute(); err != nil {
36 panic(err)
37 }
38}
39
40func makeMod() error {
41 cmd := exec.Command("make", "mod")

Callers

nothing calls this directly

Calls 1

ReleaseCommandFunction · 0.85

Tested by

no test coverage detected