-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
mktemp invocation in "install.sh" fails on older OS X images #1984
Comments
Sorry about that, I'm not very familiar with Mac OS and how it differs from Linux. Is this a BSD-ism or a MacOS-ism? What is the standard way for creating a temporary file in Mac OS X? |
That is an excellent question. I expected |
Me neither... I use Windows, and at Facebook everyone on OSX was forced to upgrade to Sierra as there's several security patches that Apple are not backporting to older OSX versions. |
Got an explanation from someone internally at Facebook :)
|
- Old versions of Mac OS (10.10 and below) require the `-t` option for `mktemp` - The check for GPG wasn't returning correctly, and tried to run GPG even when not available Closes yarnpkg#2012 Closes yarnpkg#1984
* Fix: Make install.sh Alpine linux compatible **Summary** Alpine Linux comes with BusyBox tar, which lacks the `--strip` option. This patch updates the `install.sh` script to not rely on this option. **Test plan** Manually verified on local Ubuntu for Windows. * Respect humans
Older versions of MacOS seem to require a template in calls to mktemp. Ref: yarnpkg/yarn#1984
What is the current behavior?
On OS X 10.10 and older, the install script fails due to incorrect
mktemp
invocation. The same invocation works on 10.11 and newer.If the current behavior is a bug, please provide the steps to reproduce.
Run the following on OS X Yosemite:
curl -o- -L https://yarnpkg.com/install.sh | bash
What is the expected behavior?
Installation succeeds (or, when
gpg
is not available and$YARN_GPG
is not set tono
, the installation fails withgpg
being unavailable).Please mention your node.js, yarn and operating system version.
Node.js 6.9.1 on OS X 10.10.
See https://travis-ci.org/BanzaiMan/travis_production_test/jobs/177976869#L83
The text was updated successfully, but these errors were encountered: