From 9fa8ff52e08e25bf5d27520c4b4027edf335e8a1 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Tue, 14 Feb 2023 11:29:49 -0500 Subject: [PATCH] Have bundler install gems into tea-prefix Fixes https://github.com/teaxyz/pantry.core/issues/18 --- libexec/fixup.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libexec/fixup.ts b/libexec/fixup.ts index 09311594..6b5f79c0 100755 --- a/libexec/fixup.ts +++ b/libexec/fixup.ts @@ -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" @@ -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': {