-
Notifications
You must be signed in to change notification settings - Fork 22
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
Invalid local reproduction Dockerfile #84
Comments
There are three possible solutions:
|
Diff for option 3: --- a 2021-03-22 09:49:41.685481622 +0000
+++ b 2021-03-22 09:47:14.055174720 +0000
@@ -1,19 +1,19 @@
RUN \
- opam remove -y leveldb.1.3.0 && opam depext -uivy leveldb.1.3.0 \
- res=$? \
- test "$res" = 0 && exit 0 \
+ opam remove -y leveldb.1.3.0 && opam depext -uivy leveldb.1.3.0; \
+ res=$?; \
+ test "$res" = 0 && exit 0; \
if test "$res" = 60 && diff -q /usr/bin/opam /usr/bin/opam-2.0; then \
- sudo ln -f /usr/bin/opam-2.1 /usr/bin/opam \
- opam remove -y leveldb.1.3.0 && opam install -vy leveldb.1.3.0 && opam reinstall -vyt leveldb.1.3.0 \
- exit 1 \
- fi \
- test "$res" != 31 && exit 1 \
- export OPAMCLI=2.0 \
- build_dir=$(opam var prefix)/.opam-switch/build \
- failed=$(ls "$build_dir") \
+ sudo ln -f /usr/bin/opam-2.1 /usr/bin/opam; \
+ opam remove -y leveldb.1.3.0 && opam install -vy leveldb.1.3.0 && opam reinstall -vyt leveldb.1.3.0; \
+ exit 1; \
+ fi; \
+ test "$res" != 31 && exit 1; \
+ export OPAMCLI=2.0; \
+ build_dir=$(opam var prefix)/.opam-switch/build; \
+ failed=$(ls "$build_dir"); \
for pkg in $failed; do \
if opam show -f x-ci-accept-failures: "$pkg" | grep -qF "\"alpine-3.12\""; then \
- echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field." \
- fi \
- done \
+ echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
+ fi; \
+ done; \
exit 1 \ |
Fixed in #96 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
cf. ocurrent/obuilder#66.
The final
RUN
command being produced is not valid:The text was updated successfully, but these errors were encountered: