Skip to content

Commit

Permalink
Have bundler install gems into tea-prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed Feb 14, 2023
1 parent a44857f commit 9fa8ff5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions libexec/fixup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ args:
---*/

import { parseFlags } from "cliffy/flags/mod.ts"
import { useCellar, useFlags } from "hooks"
import { useCellar, useFlags, usePrefix } from "hooks"
import { str } from "utils/pkg.ts"
import { run, host } from "utils"
import Path from "path"
Expand All @@ -36,7 +36,10 @@ case 'darwin':
'fix-machos.rb',
pkg_prefix.string,
...['bin', 'lib', 'libexec'].compact(x => pkg_prefix.join(x).isDirectory())
]
],
env: {
GEM_HOME: usePrefix().join('gem').string
}
})
break
case 'linux': {
Expand Down

0 comments on commit 9fa8ff5

Please sign in to comment.