dotherightthing / wpdtrt-plugin-boilerplate

Boilerplate for WordPress plugin development. Formerly named wpdtrt-plugin.
2 stars 2 forks source link

WP_Unit install & run tasks no longer working on local dev (SVN) #159

Closed dotherightthing closed 5 years ago

dotherightthing commented 5 years ago

Build failing on local dev after Mojave upgrade, but runs fine on Travis.

Travis runs a couple of svn commands:

+svn co --quiet https://develop.svn.wordpress.org/tags/5.2.2/tests/phpunit/includes/ /tmp/wordpress-tests-lib/includes
+svn co --quiet https://develop.svn.wordpress.org/tags/5.2.2/tests/phpunit/data/ /tmp/wordpress-tests-lib/data

svn co means svn checkout, which means these files aren't being checked out on my local dev. Perhaps the Mojave upgrade has created an incompatibility with SVN.

Find what version is on my system,

svn --version

svn, version 1.10.3 (r1842928) compiled Apr 5 2019, 18:59:58 on x86_64-apple-darwin17.0.0

Went to the Subversion site to find the latest version: https://subversion.apache.org/docs/release-notes/release-history.html

Subversion 1.12.2 (Wednesday, 24 July 2019): Bugfix release.

The site offers binary packages. SVN can be installed on MacOS via a couple of methods, including Homebrew:

brew upgrade svn 

But this doesn't work:

Error: svn not installed

Googling led me to brew cannot fetch subversion over HTTPS on Mojave

The comments mentioned a workaround for Mojave:

sudo mkdir -p /usr/local/libressl-2.2/etc/ssl/
sudo ln -s /private/etc/ssl/cert.pem /usr/local/libressl-2.2/etc/ssl/

And that the issue

is fixed in the 10.14.3 beta.

I applied the workaround and tried again:

brew upgrade svn 

No dice:

Updating Homebrew... Error: svn not installed

I restarted the terminal:

brew upgrade svn 

No dice:

Error: svn not installed

I restarted MacOS:

brew upgrade svn 

No dice:

Error: svn not installed

I'd downloaded Mojave some time ago. I wondered if the 10.13 update was available yet:

About This Mac > Software Update...

Updates are available for your Mac:

  • macOS 10.14.6 Update ...

40 minutes later..

brew upgrade svn     

Error: svn not installed

brew update

Already up-to-date.

Maybe there's an old version I need to remove ..?

brew uninstall svn 

Error: No such keg: /usr/local/Cellar/subversion

Wait, what?

Error: No such keg: /usr/local/Cellar/subversion

brew install subversion        

Updating Homebrew... ==> Installing dependencies for subversion...

:P

svn --version

svn, version 1.10.3 (r1842928) compiled Apr 5 2019, 18:59:58 on x86_64-apple-darwin17.0.0

What??

subversion --version

command not found: subversion

dotherightthing commented 5 years ago

Gave up trying to upgrade SVN. Tried the install again and the svn co commands now work, so the build completes as expected.