erlef / rebar3_hex

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

`rebar3 hex docs --revert 0.8.0` does nothing #165

Closed lpil closed 4 years ago

lpil commented 4 years ago

Environment

Appologies, my disappointing Windows machine is being unreliable so I can't copy/paste logs from my terminal.

Current behaviour

When I run rebar3 hex docs --revert $VERSION it prints that edoc is being run and then stops. The documentation is not removed

Expected behaviour

Documentation should be removed from hexdocs

starbelly commented 4 years ago

@lpil Hey Louis, are you running the latest version of rebar3_hex? I will try to replicate this tomorrow.

starbelly commented 4 years ago

I can not replicate this. --revert works as expected in that the docs are deleted for a specific version. Tested on hex.pm itself. Screen shot below. The 0.10-rc425 release had docs, then I ran rebar3 hex docs --revert 0.1.0-rc425 and it deleted the docs.

rebar3 hex docs --revert 0.1.0-rc425
===> Verifying dependencies...
===> Compiling jb_private123
===> Running edoc for jb_private123
Local Password:
===> Successfully deleted docs for jb_private123 0.1.0-rc425
Screen Shot 2020-05-01 at 7 51 24 PM

Likewise and for good measure, let's do that for 0.1.0-rc424

rebar3 hex docs --revert 0.1.0-rc424
===> Verifying dependencies...
===> Compiling jb_private123
===> Running edoc for jb_private123
Local Password:
===> Successfully deleted docs for jb_private123 0.1.0-rc424
Screen Shot 2020-05-01 at 7 54 14 PM

Note that I was using the latest version of rebar3_hex.

lpil commented 4 years ago

I may be using an older version! I'm going to close this as I have since opted to call the Hex API directly. Thanks for looking into this for me <3