Skip to content

Commit ea661ef

Browse files
committedAug 26, 2019
Makefile: automatically use Homebrew Ruby if installed
1 parent e49fbc0 commit ea661ef

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
 

‎Makefile

+4-2
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@
1616
# depend on gem being installed globally, but not bundler. (Go
1717
# developers sometimes manage to install
1818
# https://github.com/golang/tools/tree/master/cmd/bundle in a location
19-
# that conflicts with the ruby tool of the same name)
19+
# that conflicts with the ruby tool of the same name.)
20+
# Note that we also amend the path to include /usr/local/opt/ruby/bin, which
21+
# is where Homebrew will install a more up-to-date version of Ruby on macOS.
2022
export GEM_HOME := vendor
21-
export PATH := $(GEM_HOME)/bin:$(PATH)
23+
export PATH := $(GEM_HOME)/bin:/usr/local/opt/ruby/bin:$(PATH)
2224

2325
# HACK: Make has a fast path and a slow path for command execution,
2426
# but the fast path uses the PATH variable from when make was started,

0 commit comments

Comments
 (0)
Please sign in to comment.