Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chloggen panics on execution #224

Closed
atoulme opened this issue Jan 18, 2023 · 0 comments · Fixed by #225
Closed

chloggen panics on execution #224

atoulme opened this issue Jan 18, 2023 · 0 comments · Fixed by #225

Comments

@atoulme
Copy link
Contributor

atoulme commented Jan 18, 2023

chloggen panics when called to generate the changelog with this build:
https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/3953803247/jobs/6770466495

See this stacktrace:

panic: open go.opentelemetry.io/build-tools/chloggen@v0.3.0/internal/chlog/summary.tmpl: no such file or directory

goroutine 1 [running]:
text/template.Must(...)
	text/template/helper.go:26
go.opentelemetry.io/build-tools/chloggen/internal/chlog.summary.String({{0x5ebe97, 0x5}, {0xc000146400, 0x12, 0x20}, {0xc000197d70, 0x1, 0x1}, {0x0, 0x0, ...}, ...})
	go.opentelemetry.io/build-tools/chloggen@v0.3.0/internal/chlog/summary.go:66 +0x311
go.opentelemetry.io/build-tools/chloggen/internal/chlog.GenerateSummary({0x5ebe97?, 0x51?}, {0xc00014[8](https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/3953601887/jobs/6770052166#step:8:9)000, 0x2d, 0xc000026240?})
	go.opentelemetry.io/build-tools/chloggen@v0.3.0/internal/chlog/summary.go:60 +0x73f
go.opentelemetry.io/build-tools/chloggen/cmd.update({{0xc000026004, 0x51}, {0xc000026180, 0x5e}, {0xc000026240, 0x5b}, {0xc000020540, 0x6[9](https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/3953601887/jobs/6770052166#step:8:10)}}, {0x5ebe97, 0x5}, ...)
	go.opentelemetry.io/build-tools/chloggen@v0.3.0/cmd/update.go:56 +0xc7
go.opentelemetry.io/build-tools/chloggen/cmd.glob..func2(0x758e20?, {0x5ebbc7?, 0x1?, 0x1?})
	go.opentelemetry.io/build-tools/chloggen@v0.3.0/cmd/update.go:42 +0x70
github.com/spf13/cobra.(*Command).execute(0x758e20, {0xc000030880, 0x1, 0x1})
	github.com/spf13/cobra@v1.6.1/command.go:916 +0x862
github.com/spf13/cobra.(*Command).ExecuteC(0x758b40)
	github.com/spf13/cobra@v1.6.1/command.go:[10](https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/3953601887/jobs/6770052166#step:8:11)44 +0x3bd
github.com/spf[13](https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/3953601887/jobs/6770052166#step:8:14)/cobra.(*Command).Execute(...)
	github.com/spf13/cobra@v1.6.1/command.go:968
go.opentelemetry.io/build-tools/chloggen/cmd.Execute()
	go.opentelemetry.io/build-tools/chloggen@v0.3.0/cmd/root.go:35 +0x25
main.main()
	go.opentelemetry.io/build-tools/chloggen@v0.3.0/main.go:22 +0x[17](https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/3953601887/jobs/6770052166#step:8:18)
make: *** [Makefile:[24](https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/3953601887/jobs/6770052166#step:8:25)9: chlog-preview] Error 2
Error: Process completed with exit code 2.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant