Closed lpil closed 4 years ago
@lpil Hey Louis, are you running the latest version of rebar3_hex? I will try to replicate this tomorrow.
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
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
Note that I was using the latest version of rebar3_hex.
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
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 removedExpected behaviour
Documentation should be removed from hexdocs