Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix stripping VERSION_PREFIX from major versions to prevent creating versions with double versions. - #33

Merged
markchalloner merged 1 commit into
markchalloner:masterfrom
oliviabarrick:fix-major-versions
Oct 24, 2018
Merged

Fix stripping VERSION_PREFIX from major versions to prevent creating versions with double versions.#33
markchalloner merged 1 commit into
markchalloner:masterfrom
oliviabarrick:fix-major-versions

Conversation

@oliviabarrick

Copy link
Copy Markdown
Contributor

I had a VERSION_PREFIX=v which caused my versions to have two "v":

➜  fluxcloud git:(master) ✗ git semver --dryrun patch
vv0.2.11
➜  fluxcloud git:(master) ✗

Bash does not interpolate variables inside of single quotes, so this fixes the sed
command in version-parse-major to use double quotes so that the VERSION_PREFIX
gets properly stripped.

…versions with double versions.

I had a `VERSION_PREFIX=v` which caused my versions to have two "v":

```
➜  fluxcloud git:(master) ✗ git semver --dryrun patch
vv0.2.11
➜  fluxcloud git:(master) ✗
```

Bash does not interpolate variables inside of single quotes, so this fixes the sed
command in version-parse-major to use double quotes so that the VERSION_PREFIX
gets properly stripped.
@markchalloner

Copy link
Copy Markdown
Owner

Thanks @justinbarrick, good catch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants