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

carton doesn't work when invoked on the filesystem root #275

Open
pplu opened this issue Dec 28, 2020 · 0 comments · May be fixed by #279
Open

carton doesn't work when invoked on the filesystem root #275

pplu opened this issue Dec 28, 2020 · 0 comments · May be fixed by #279

Comments

@pplu
Copy link
Contributor

pplu commented Dec 28, 2020

Hi,

carton doesn't find the cpanfile when invoked from the root / of a filesystem. If a cpanfile exists, carton says it can't locate a cpanfile:

root@3f57344871f4:/# carton install
Can't locate cpanfile: (cpanfile)

This happened to me when building inside a docker container, since debian stretch images workdir is /. To reproduce:

docker run --rm -ti debian:stretch /bin/bash
root@3f57344871f4:/# apt-get update ; apt-get -y upgrade ; apt-get install -y carton
root@3f57344871f4:/# cat - > cpanfile <<EOF
requires 'JSON::PP';
EOF
root@3f57344871f4:/# carton install
Can't locate cpanfile: (cpanfile)

I don't think that invoking carton in the filesystem root is specially wise, but it happens by default (and I can imagine lots more images have that default) and the error is very misleading.

Note that this happens with Debian packaged carton, as well as v1.0.34 from CPAN.

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

Successfully merging a pull request may close this issue.

1 participant