File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -790,16 +790,23 @@ def build_chart(
790
790
if "set.by.chartpress" in chart ["version" ]:
791
791
raise ValueError (
792
792
f"Chart { chart_file } has placeholder version { chart ['version' ]} , with `useChartVersion: true`."
793
- f"Set the version in the { chart_file } to a base pre-release tag,"
794
- " e.g. `1 .0.0-0.dev` or `1 .0.0-alpha.1` and run chartpress again."
793
+ f" Set the version in the { chart_file } to a base pre-release tag (your _next_ release) ,"
794
+ " e.g. `2 .0.0-0.dev` or `2 .0.0-alpha.1` and run chartpress again."
795
795
)
796
796
797
797
# require starting from a prerelease tag, to ensure correct ordering
798
798
if "-" not in chart ["version" ]:
799
+ if reset :
800
+ raise ValueError (
801
+ "--reset after a release must also specify --tag $VERSION to reset to"
802
+ " when using useChartVersion: true."
803
+ " This should be your _next_ pre-release version,"
804
+ " e.g. `chartpress --reset --tag 1.0.1-0.dev`"
805
+ )
799
806
raise ValueError (
800
807
f"Chart { chart_file } has non-prerelease version { chart ['version' ]} with `useChartVersion: true`"
801
- f"Set the version in the { chart_file } to a base pre-release tag,"
802
- " e.g. `1 .0.0-0.dev` or `1 .0.0-alpha.1` and run chartpress again."
808
+ f" Set the version in the { chart_file } to a base pre-release tag (your _next_ release) ,"
809
+ " e.g. `2 .0.0-0.dev` or `2 .0.0-alpha.1` and run chartpress again."
803
810
)
804
811
else :
805
812
base_version = None
You can’t perform that action at this time.
0 commit comments