Skip to content
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

rebar3 hex docs --dry-run asking for my Local Password #309

Closed
paulo-ferraz-oliveira opened this issue Apr 11, 2022 · 6 comments
Closed

Comments

@paulo-ferraz-oliveira
Copy link
Collaborator

paulo-ferraz-oliveira commented Apr 11, 2022

I'm using --dry-run in rebar3 hex publish docs and it asks me for Local Password: .

Since the documentation states

  --dry-run   Generates docs (if configured) but does not publish the
              docs. Useful for inspecting docs before publishing.
              [default: false]

I'm wondering if that's intended behaviour, or a bug, since, when my password is asked for, the documentation is already generated.

I'd like to use the --dry-run command for CI (I imagine the exit code code be such that a CI flow could be interrupted), to make sure the documentation is possible to generate, without uploading it.

Thanks.

@starbelly
Copy link
Member

We can fix that up, but also I recommend using rebar3 hex build to inspect contents.

@paulo-ferraz-oliveira
Copy link
Collaborator Author

paulo-ferraz-oliveira commented Apr 11, 2022

Oh, cool. I'd never used it. Thanks.

Edit: in any case I'm sure build does more than publish docs and I'm only interested in replacing a small part of a CI.

@starbelly
Copy link
Member

starbelly commented Apr 30, 2022

@paulo-ferraz-oliveira If you CI is only doing a dry run you can simply do build docs

Edit:

Note my answer doesn't resolve the issue. It shouldn't happen during a dry-run :)

@paulo-ferraz-oliveira
Copy link
Collaborator Author

Do you know if this still happens, @starbelly? I can try and find time to fix it, if it does.

@starbelly
Copy link
Member

No, this will no longer prompt for the local password in the case of docs. Only in the case of package, but that should probably not be the case. I'll open up an issue for that one and close this.

@starbelly
Copy link
Member

#315

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants