Git Product home page Git Product logo

rebar_cmd's People

Contributors

bigodines avatar eproxus avatar gootik avatar paulo-ferraz-oliveira avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

bigodines akovari

rebar_cmd's Issues

Shell stream

If the command is a long running command with messages being streamed, you don't see anything until the command is done.

shell_loop should not use throws

Instead of throwing errors, just return them and let rebar handle it upstream. It could show a nice error to the console instead of "something went wrong, use DEBUG=1..." message.

rebar3 cmd <comand> : return code fails to indicate command failure status

Summary

I'm encountering an issue while using rebar3 cmd <command>. With the transition to os:cmd/1, I'm unable to retrieve the return code accurately to determine whether the command has failed or not.
I'm using this functionality in a GitHub Actions workflow for checks. Having access to the return code is crucial for proper workflow automation and error handling.

Example

Consider the following simple example in my project's rebar.config:

{commands, [
    {example, "ls non_existent_directory", []},
]}.

The command ls non_existent_directory always returns a return code of 1, indicating failure.

❯ ls non_existent_directory
ls: non_existent_directory: No such file or directory

❯ echo $?
1

However, when executed with rebar3 cmd example the return code is erroneously reported as 0, causing GitHub checks to be marked as successful even in case of failure:

❯ rebar3 cmd example
ls: non_existent_directory: No such file or directory

❯ echo $?
0

potential use case?

Potential use-case is not clear from README and not clear for me right now.

Care to add some examples?

Move from Travis CI to GitHub Actions?

Would you be interested in a pull request that moves CI from Travis CI to GitHub Actions, or at least adds GitHub Actions alongside Travis CI? It seems travis-ci.org will stop being useful from Dec 31 2020. I can do it, except that I think you need to create the workflow yml, first, in master, after which I can branch off of.

OTP 23 compilation issues

We need to figure out a solution for this and implement it.

build/default/plugins/rebar3_hex/src/rebar3_hex_user.erl:246: Warning: crypto:block_encrypt/4 is deprecated and will be removed in OTP 24; use use crypto:crypto_one_time/5, crypto:crypto_one_time_aead/6,7 or crypto:crypto_(dyn_iv)?_init + crypto:crypto_(dyn_iv)?_update + crypto:crypto_final instead
_build/default/plugins/rebar3_hex/src/rebar3_hex_user.erl:256: Warning: crypto:block_decrypt/4 is deprecated and will be removed in OTP 24; use use crypto:crypto_one_time/5, crypto:crypto_one_time_aead/6,7 or crypto:crypto_(dyn_iv)?_init + crypto:crypto_(dyn_iv)?_update + crypto:crypto_final instead

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.