erlef / rebar3_hex

Rebar3 Hex library
Apache License 2.0
101 stars 49 forks source link

rebar3 hex docs: Improve error message when using {vsn, "git"} #252

Closed wojtekmach closed 2 years ago

wojtekmach commented 3 years ago

I have:

%% src/<app>.app.src
{vsn, "git"}

I was running the following:

~/src/telemetry[main]% rebar3 hex docs
===> No valid hex docs configuration found. Docs will will not be generated
Local Password:
===> Error publishing : Package or Package Version not found

It isn't immediately clear from the error message what is going on. I assume what is going on is since {vsn, "git"} is used, the current tag/branch is used, "main" in my case. I think it would be helpful to mention which version was attempted to be published to.

tsloughter commented 3 years ago

Ah yup, definitely needs to tell you the version it tried to publish for.

If you do the publishing from main and you have commits beyond the tag release then it'll be a new vsn and result in trying to publish for that package (which won't exist).

starbelly commented 3 years ago

Adding this for V7 todo.

Edit:

Note that rebar3 hex docs will not be used for publishing in v7 to be aligned with mix hex.