-
Notifications
You must be signed in to change notification settings - Fork 24
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
Pre-release replaced by later builds #62
Comments
Confusion points"g" was added to the commit hashAha, apparently the git describe command adds a "g" prefix. Hmm... https://git-scm.com/docs/git-describe#_examples Specifying filename when running helm packageApparently we cannot specify a filename for the helm package, but the filename doesn't really matter when an index.yaml file is created. It will simply use the Chart.yaml version, but that contains a plus sign sometimes, and becomes an helm repo index --mergeHmmm... If the name and version does not exist, we should have it become appended. It isn't. This is what I think leads to the observed outcomes. Merge function -> Has function -> Get function I think the Get function returns non-errorish, and then Has returns true, and Merge decides to not append the chart entry in the merge operation. I suspect this section leads to the return that should not happen. for _, ver := range vs {
test, err := semver.NewVersion(ver.Version)
if err != nil {
continue
}
if constraint.Check(test) {
return ver, nil
}
} datetime quotingWhat is going on here with all the quoting? jupyterhub/helm-chart@29f7cbe#diff-43a27642790006c93fea79f384f23b4fL2858-R2859 |
I've debugged this in depth and concluded that Helm has either a bug or to me very unexpected behavior, where only one build will be found in the index. Option 1 : Abandon
|
By cleaning these up, I can make a better info.json template file that can be used with badges to give us the latest tags of relevance etc. My goal is to make a tag that shows the latest stable, latest pre-release, and latest dev release. Related issue that caused the initial use of + sign to be used in versions followed by us switching away from it later: jupyterhub/chartpress#62
I've found a reproducible issue since #52 relating to the use of chartpress. Apparently, if we use chartpress to publish a tagged commit, like
0.9.0-alpha.1
, and later use chartpress to publish a later commit, it appears that Helm chart repository'sindex.yaml
will get its entry about0.9.0-alpha.1
replaced by0.9.0-alpha.1+001.g152b8c9a
, instead of having it added alongside...jupyterhub/helm-chart@29f7cbe#diff-43a27642790006c93fea79f384f23b4fL2858-R2859
Reproduction
You need chartpress and helm, where helm is initialized with
helm init --client-only
.Reproduction results
The text was updated successfully, but these errors were encountered: