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

Panic when doing upload in private GH repo #477

Open
madchap opened this issue Dec 31, 2024 · 0 comments
Open

Panic when doing upload in private GH repo #477

madchap opened this issue Dec 31, 2024 · 0 comments

Comments

@madchap
Copy link

madchap commented Dec 31, 2024

Hi,

First time user, fresh install and fresh token. I cannot seem to upload in GH private repo.

Version 1.7.0, installed via brew.

While in gh-pages branch:

$ cr package charts/clickhouse
Successfully packaged chart in /Users/xxxx/gitrepos/myorg/lf-helm-charts/charts/clickhouse and saved it to: .cr-release-packages/clickhouse-3.13.0.tgz
$ cr upload --owner myorg --git-repo helm-charts --packages-with-index --token $(cat ~/.seeds/gh-lf-pat-finegrained.token) --push --skip-existing

Preparing worktree (detached HEAD 324658b)
HEAD is now at 324658b initial
panic: runtime error: index out of range [1] with length 1

goroutine 1 [running]:
github.com/helm/chart-releaser/pkg/git.(*Git).GetPushURL(0x140005f99c8?, {0x1016455a7?, 0x8?}, {0x16fb16e66, 0x5d})
        /home/runner/work/chart-releaser/chart-releaser/pkg/git/git.go:87 +0x174
github.com/helm/chart-releaser/pkg/releaser.(*Releaser).pushToPagesBranch(0x140005f9c40, {0x14000654000, 0x49})
        /home/runner/work/chart-releaser/chart-releaser/pkg/releaser/releaser.go:371 +0x5c
github.com/helm/chart-releaser/pkg/releaser.(*Releaser).CreateReleases(0x140005f9c40)
        /home/runner/work/chart-releaser/chart-releaser/pkg/releaser/releaser.go:358 +0x818
github.com/helm/chart-releaser/cr/cmd.init.func3(0x14000668a00?, {0x101643e7a?, 0x4?, 0x101643e7e?})
        /home/runner/work/chart-releaser/chart-releaser/cr/cmd/upload.go:37 +0x11c
github.com/spf13/cobra.(*Command).execute(0x102c55640, {0x140006bd7a0, 0x9, 0x9})
        /home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:985 +0x840
github.com/spf13/cobra.(*Command).ExecuteC(0x102c55080)
        /home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:1117 +0x344
github.com/spf13/cobra.(*Command).Execute(...)
        /home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:1041
github.com/helm/chart-releaser/cr/cmd.Execute()
        /home/runner/work/chart-releaser/chart-releaser/cr/cmd/root.go:35 +0x24
main.main()
        /home/runner/work/chart-releaser/chart-releaser/cr/main.go:20 +0x1c
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