@@ -787,8 +787,10 @@ def build_chart(
787
787
Update Chart.yaml's version, using specified version or by constructing one.
788
788
789
789
Chart versions are constructed using:
790
- a) a base version, derived from either Chart.yaml or the latest tag
791
- b) the latest commit that modified provided paths
790
+ a) a base version, derived from either Chart.yaml's version field or the latest git tag on branch
791
+ b) the latest commit that was tagged on the current branch (n)
792
+ c) the latest commit that modified provided paths (hash)
793
+
792
794
793
795
Example versions constructed:
794
796
- 0.9.0-0.dev.git.2.hdfgh3456
@@ -1117,7 +1119,6 @@ def main(args=None):
1117
1119
# - push chart (--publish-chart, --extra-message)
1118
1120
for chart in config ["charts" ]:
1119
1121
forced_version = None
1120
- # TODO: maybe warn and switch default in the future?
1121
1122
use_chart_version = chart .get ("useChartVersion" , False )
1122
1123
1123
1124
if args .tag :
@@ -1126,7 +1127,7 @@ def main(args=None):
1126
1127
elif args .reset and not use_chart_version :
1127
1128
# resetting, get version from chartpress.yaml,
1128
1129
# ignoring current version in Chart.yaml
1129
- forced_version = chart .get ("resetVersion" , "0.0.1-0.dev " )
1130
+ forced_version = chart .get ("resetVersion" , "0.0.1-set.by.chartpress " )
1130
1131
1131
1132
if not args .list_images :
1132
1133
# update Chart.yaml with a version
0 commit comments