cr index fails when index.yaml allready exists
- Dominant language
- Go
- Stars
- 783
- Forks
- 126
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 11
Description
Hi, im unable to generate index.yaml when index file allready exist, for example when i want to index a new version of a chart.
Checked all the permissions on folders, everything looks ok, but this issue still appears.
OS: Windows 10 Pro 10.0.19042 Build 19042
CR: 1.2.0
config.yml:
owner: {owner}
git-repo: {repo-name}
charts-repo: https://{owner}.github.io/{repo-name}/
package-path: C:\k8s\.deploy
token: {token}
git-base-url: https://api.github.com/
git-upload-url: https://uploads.github.com/
index-path: .\index.yaml
`git checkout gh-pages`
`
cr index --config C:\k8s\config.yml
Using config file: C:\k8s\config.yml
Using existing index at ./index.yaml
Found test-chart-0.0.2.tgz
Extracting chart metadata from C:\k8s\.deploy\test-chart-0.0.2.tgz
Calculating Hash for C:\k8s\.deploy\test-chart-0.0.2.tgz
Updating index ./index.yaml
Error: link error: cannot rename index.yaml111555139 to ./index.yaml: rename index.yaml111555139 ./index.yaml: Access is denied.
`

Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.