Skip to content

Commit a3ac7a6

Browse files
authored
Remove the ".1" suffix that is always added by semver to the prerelease token. (#2)
1 parent eb5c910 commit a3ac7a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

release/cargo-version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def bump_level(cls, version, level):
4747
elif level == 'patch':
4848
return str(v.bump_patch())
4949
else:
50-
return str(v.bump_prerelease('nightly'))
50+
return str(v.bump_prerelease('nightly'))[:-2] ### remove the .1 suffix that semver always adds to the prererelease.
5151

5252
def finalize_version(self):
5353
return Crate(self.path, self.name, Crate.finalize(self.version), self.dependencies.copy())

0 commit comments

Comments
 (0)