Closed alexeyr closed 10 years ago
You have to replace the vsn
tuple in your app.src with {vsn, "semver"}
I was going by
The key change is having the version you wish to use
{vsn, "0.0.5"}
in the version field.
Is this only talking about stable versions or some other specific situations?
Yea. I noticed that that was misleading. I am going to update the readme. I was trying to say that when you hardcode a version its not usually truly representative of the version unless you are very careful. Thats what this plugin is designed to fix.
Thanks! The behavior I expected would be that I'd get 1.1.0+build...
as the version, i.e. the same as semver
but with the first part determined by .app.src
instead of the Git tag.
Historically the plugin got called for all the apps in the system, but the target app and any/all dependencies. So we needed a way to distinguish those apps that where designed to be updated by the plugin and those that where not. This is the way we came up with.
Could you add an example of a project using this plugin to the README?
I've tried to activate it in https://github.com/alexeyr/erlang-sqlite3/tree/rebar_vsn but this doesn't seem to have any effect (from
Explanation
it isn't clear where the version string will be placed; I assumedebin/<app-name>.app
).