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

Inexisting dependencies are still fetched and reported fine #39

Closed
ferd opened this issue Dec 5, 2014 · 0 comments
Closed

Inexisting dependencies are still fetched and reported fine #39

ferd opened this issue Dec 5, 2014 · 0 comments
Labels

Comments

@ferd
Copy link
Collaborator

ferd commented Dec 5, 2014

Rebar returns successfully if it fails to fetch deps appropriately during the compile command.

λ c → cat rebar.config
{deps, [{bad, ".*", {git, "git@bitbucket.org:ferd/fake-repo.git", "master"}}]}.
λ c → DEBUG=1 ~/code/self/rebar3/rebar3 compile
===> Consult config file "rebar.config"
===> Consult config file "rebar.lock"
===> Consult config file "/tmp/c/rebar.config"
===> Consult config file "rebar.lock"
===> Consult config file "/tmp/c/rebar.config"
===> Fetching bad
===> WARNING: It is recommended to use {branch, Name}, {tag, Tag} or {ref, Ref}, otherwise updating the dep may not work as expected.
===> sh info:
        cwd: "/tmp/c"
        cmd: git clone -n git@bitbucket.org:ferd/fake-repo.git .tmp_dir857810636347

===>    opts: [{cd,"/tmp"}]

===> Port Cmd: "git clone -n git@bitbucket.org:ferd/fake-repo.git .tmp_dir857810636347"
Port Opts: [{cd,"/tmp"},
            exit_status,
            {line,16384},
            use_stdio,stderr_to_stdout,hide]

===> sh(git clone -n git@bitbucket.org:ferd/fake-repo.git .tmp_dir857810636347)
failed with return code 128 and the following output:
Cloning into '.tmp_dir857810636347'...
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

λ c → echo $!
0

The status code remains 0 whether it runs as install_deps or compile.

And the resulting tree:

λ c → tree _build
_build
└── default
    └── lib
        └── bad

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

No branches or pull requests

1 participant