-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Labels
invalidThis doesn't seem rightThis doesn't seem right
Description
What happened?
I'm trying to use goreleaser with a self hosted gitea instance. When I specify gitea_urls
in my yaml, the scm release will fail with error=scm releases: failed to publish artifacts: invalid URL:
and then no url.
Goreleaser should use the url I specified, but it's empty.
How can we reproduce this?
This is the yml I use:
release:
prerelease: auto
before:
hooks:
- go mod tidy
builds:
- binary: publish-podcasts
env:
- CGO_ENABLED=0
ldflags:
- -s -w
goos:
- linux
- windows
- darwin
goarch:
- amd64
archives:
- format: zip
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ .Version }}"
changelog:
sort: asc
gitea_urls:
api: http://our.internal.gitea.media/api/v1
download: http://our.internal.gitea.media
And this is the output I get:
~/r/publish-podcasts ❯❯❯ GORELEASER_FORCE_TOKEN=gitea GITEA_TOKEN=mytoken goreleaser release --clean
• starting release...
• could not find a config file, using defaults...
• loading environment variables
• using token from "$GITEA_TOKEN"
• getting and validating git state
• couldn't find any tags before "1.0.0"
• building... commit=99034b0e5911813187e0d6d58c0c0c5758c5d093 latest tag=1.0.0
• parsing tag
• setting defaults
• checking distribution directory
• cleaning dist
• loading go mod information
• build prerequisites
• writing effective config file
• writing config=dist/config.yaml
• building binaries
• building binary=dist/publish-podcasts_linux_386/publish-podcasts
• building binary=dist/publish-podcasts_linux_arm64/publish-podcasts
• building binary=dist/publish-podcasts_windows_arm64/publish-podcasts.exe
• building binary=dist/publish-podcasts_darwin_amd64_v1/publish-podcasts
• building binary=dist/publish-podcasts_windows_386/publish-podcasts.exe
• building binary=dist/publish-podcasts_windows_amd64_v1/publish-podcasts.exe
• building binary=dist/publish-podcasts_linux_amd64_v1/publish-podcasts
• building binary=dist/publish-podcasts_darwin_arm64/publish-podcasts
• took: 1s
• generating changelog
• writing changelog=dist/CHANGELOG.md
• archives
• creating archive=dist/publish-podcasts_1.0.0_windows_arm64.tar.gz
• creating archive=dist/publish-podcasts_1.0.0_linux_amd64.tar.gz
• creating archive=dist/publish-podcasts_1.0.0_linux_386.tar.gz
• creating archive=dist/publish-podcasts_1.0.0_windows_386.tar.gz
• creating archive=dist/publish-podcasts_1.0.0_darwin_amd64.tar.gz
• creating archive=dist/publish-podcasts_1.0.0_darwin_arm64.tar.gz
• creating archive=dist/publish-podcasts_1.0.0_linux_arm64.tar.gz
• creating archive=dist/publish-podcasts_1.0.0_windows_amd64.tar.gz
• took: 1s
• calculating checksums
• publishing
• scm releases
⨯ release failed after 1s error=scm releases: failed to publish artifacts: invalid URL:
Seems like the url is not read correctly. I've tried different urls for testing as well, but none show up.
goreleaser version
____ ____ _
/ ___| ___ | _ \ ___| | ___ __ _ ___ ___ _ __
| | _ / _ \| |_) / _ \ |/ _ \/ _` / __|/ _ \ '__|
| |_| | (_) | _ < __/ | __/ (_| \__ \ __/ |
\____|\___/|_| \_\___|_|\___|\__,_|___/\___|_|
goreleaser: Deliver Go Binaries as fast and easily as possible
https://goreleaser.com
GitVersion: 1.18.1
GitCommit: unknown
GitTreeState: unknown
BuildDate: unknown
BuiltBy: unknown
GoVersion: go1.20.4
Compiler: gc
ModuleSum: unknown
Platform: linux/amd64
GoReleaser Check
- goreleaser check shows no errors
Search
- I did search for other open and closed issues before opening this
Supporter
Code of Conduct
- I agree to follow this project's Code of Conduct
Additional context
Same error happens on multiple platforms. Tested on windows, arch linux, goreleaser docker container (via drone ci). All with the latest release.
Metadata
Metadata
Assignees
Labels
invalidThis doesn't seem rightThis doesn't seem right