Skip to content

Commit 61ff4bb

Browse files
committed
Open Package: Fix GOROOT package finding.
1 parent 6570121 commit 61ff4bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Commands/Open Package.tmCommand

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<key>beforeRunningCommand</key>
66
<string>nop</string>
77
<key>command</key>
8-
<string>#!/usr/bin/env ruby18
8+
<string>#!/usr/bin/env ruby18 -wKU
99
require "shellwords"
1010
require "#{ENV['TM_BUNDLE_SUPPORT']}/gomate" # import to get dynamic gopath if set
1111
@@ -28,7 +28,7 @@ def go_path
2828
env.scan(/^GO(PATH|ROOT)="(.*)"/) do |key,value|
2929
case key
3030
when 'PATH'; lcal = value.split(':').map { |dir| "#{dir}/src" }
31-
when 'ROOT'; root = value.split(':').map { |dir| "#{dir}/src/pkg" }
31+
when 'ROOT'; root = value.split(':').map { |dir| "#{dir}/src" }
3232
end
3333
end
3434
[ lcal, root ].flatten

0 commit comments

Comments
 (0)