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

gorelease changelog failes with gitea #485

Open
nickytd opened this issue Jan 6, 2025 · 0 comments
Open

gorelease changelog failes with gitea #485

nickytd opened this issue Jan 6, 2025 · 0 comments

Comments

@nickytd
Copy link

nickytd commented Jan 6, 2025

The gorelease action fails when running against a gitea instance.
The .gorelease.yml configuration snippet is minimalistic:

changelog:
  use: gitea
gitea_urls:
  api: https://gitea...../api/v1
  download: https://gitea.....
  # set to true if you use a self-signed certificate
  skip_tls_verify: true

and the output is following:

• generating changelog
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x30 pc=0xe4c302]
goroutine 49 [running]:
github.com/goreleaser/goreleaser/v2/internal/client.(*giteaClient).Changelog(0xa57877?, 0xc000cbf770?, {{0xc0007b3890, 0x9}, {0xc0008676a6, 0x16}, {0x0, 0x0}, {0x0, 0x0}, ...}, ...)
	github.com/goreleaser/goreleaser/[email protected]/internal/client/gitea.go:89 +0x1a2
github.com/goreleaser/goreleaser/v2/internal/pipe/changelog.(*scmChangeloger).Log(0x5f06a0?, 0xc00028a888)
	github.com/goreleaser/goreleaser/[email protected]/internal/pipe/changelog/changelog.go:453 +0xa5
github.com/goreleaser/goreleaser/v2/internal/pipe/changelog.buildChangelog(0xc00028a888)
	github.com/goreleaser/goreleaser/[email protected]/internal/pipe/changelog/changelog.go:[26](https://gitea......./developer/goreleaser-hello-world/actions/runs/8#jobstep-7-26)2 +0x37
github.com/goreleaser/goreleaser/v2/internal/pipe/changelog.Pipe.Run({}, 0xc000[28](https://gitea......./developer/goreleaser-hello-world/actions/runs/8#jobstep-7-28)a888)
	github.com/goreleaser/goreleaser/[email protected]/internal/pipe/changelog/changelog.go:86 +0x185
github.com/goreleaser/goreleaser/v2/cmd.releaseProject.func1.Handle.1(0xc00011a520?)
	github.com/goreleaser/goreleaser/[email protected]/internal/middleware/errhandler/error.go:15 +0x1b
github.com/goreleaser/goreleaser/v2/cmd.releaseProject.func1.Log.2(0xc00028a888)
	github.com/goreleaser/goreleaser/[email protected]/internal/middleware/logging/logging.go:[30](https://gitea......./developer/goreleaser-hello-world/actions/runs/8#jobstep-7-30) +0x132
github.com/goreleaser/goreleaser/v2/internal/middleware/skip.Maybe.func1(0xc00028a888)
	github.com/goreleaser/goreleaser/[email protected]/internal/middleware/skip/skip.go:42 +0x10c
github.com/goreleaser/goreleaser/v2/cmd.releaseProject.func1()
	github.com/goreleaser/goreleaser/[email protected]/cmd/release.go:123 +0x182
github.com/caarlos0/ctrlc.(*Ctrlc).Run.func1()
	github.com/caarlos0/[email protected]/ctrlc.go:48 +0x23
created by github.com/caarlos0/ctrlc.(*Ctrlc).Run in goroutine 1
	github.com/caarlos0/[email protected]/ctrlc.go:47 +0x94
::error::The process '/opt/hostedtoolcache/goreleaser-action/2.5.1/x64/goreleaser' failed 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

No branches or pull requests

1 participant