[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-wallet-core] branch master updated: configure: test
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-wallet-core] branch master updated: configure: test for yarn help result containing "No such file" etc, so that we can catch the yarn possibly installed by cmdtest. |
Date: |
Tue, 01 Oct 2019 18:50:18 +0200 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository wallet-core.
The following commit(s) were added to refs/heads/master by this push:
new 04047596 configure: test for yarn help result containing "No such
file" etc, so that we can catch the yarn possibly installed by cmdtest.
04047596 is described below
commit 040475967c22b01e6d553143c54d8babdb686081
Author: ng0 <address@hidden>
AuthorDate: Tue Oct 1 16:48:23 2019 +0000
configure: test for yarn help result containing "No such file" etc,
so that we can catch the yarn possibly installed by cmdtest.
This can lead to issues, and I don't understand why apt and maybe
other PMs allow namespace collisions, or resolve them in a way
which allows this to happen.
---
configure | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/configure b/configure
index 812d0460..ab64c25c 100755
--- a/configure
+++ b/configure
@@ -83,11 +83,23 @@ else
#echo "Using node ${node_version}"
if ! node -p 'process.exit(!(/v([0-9]+)/.exec(process.version)[1] >= 4))';
then
echo 'Your node version is too old, use Node 4.x or newer'
+ exit 1
fi
fi
if ! existence yarn; then
echo 'ERROR: yarn missing. See https://yarnpkg.com/en/docs/install'
+ exit 1
+fi
+
+if existence cmdtest; then
+ if yarn help | grep "No such file or directory"; then
+ echo "ERROR: wrong yarn binary installed, please remove the"
+ echo "ERROR: conflicting binary before continuing."
+ exit 1
+ fi
+ echo "WARNING: cmdtest is installed, this can lead to known issues"
+ echo "WARNING: with yarn."
fi
# for the weird systems and sandboxes, only as a anotice.
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [taler-wallet-core] branch master updated: configure: test for yarn help result containing "No such file" etc, so that we can catch the yarn possibly installed by cmdtest.,
gnunet <=