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
bower version
still uses bower.json, contradicting the spec
#2139
Comments
@hdgarrood I think there is a small typo in your command. It should be bower --version major |
@sheerun I think we have to change the logger message to |
@rajzshkr no, I meant what I wrote. Or perhaps the documentation is wrong: http://bower.io/docs/api/#version |
|
@hdgarrood oops. I made a wrong assumption. |
I think this ought to be considered a bug, not an enhancement. It's very clearly not doing what the docs say it should do. |
Looking at the code, it seems the problem is that Bower is expecting the version to be in Given that the spec claims that Bower ignores this field, I think this is a bug. If I sent a PR which made Bower ignore the version in the JSON when running |
`bower version` currently takes the version from the "version" field of bower.json, but the spec says that bower ignores it. This commit updates the `bower version` tests so that they are consistent with the spec. Now, the tests are based on the assumption that `bower version` should only use git tags.
`bower version` currently takes the version from the "version" field of bower.json, but the spec says that bower ignores it. This commit updates the `bower version` tests so that they are consistent with the spec. Now, the tests are based on the assumption that `bower version` should only use git tags.
Fixes bower#2139. Make `bower version` operate solely on git tags, ignoring the version field in bower.json (if it exists).
`bower version` currently takes the version from the "version" field of bower.json, but the spec says that bower ignores it. This commit updates the `bower version` tests so that they are consistent with the spec. Now, the tests are based on the assumption that `bower version` should only use git tags.
Fixes bower#2139. Make `bower version` operate solely on git tags, ignoring the version field in bower.json (if it exists).
`bower version` currently takes the version from the "version" field of bower.json, but the spec says that bower ignores it. This commit updates the `bower version` tests so that they are consistent with the spec. Now, the tests are based on the assumption that `bower version` should only use git tags.
Fixes bower#2139. Make `bower version` operate solely on git tags, ignoring the version field in bower.json (if it exists).
bower version
does not work with semver.inc argumentsbower version
still uses bower.json, contradicting the spec
`bower version` currently takes the version from the "version" field of bower.json, but the spec says that bower ignores it. This commit updates the `bower version` tests so that they are consistent with the spec. Now, the tests are based on the assumption that `bower version` should only use git tags.
Fixes bower#2139. Make `bower version` operate solely on git tags, ignoring the version field in bower.json (if it exists).
@hdgarrood Have you submitted a PR? |
For example, with Bower 1.7.2:
The same happens with
minor
,patch
, andbuild
.The text was updated successfully, but these errors were encountered: