Skip to content

Commit d4762ee

Browse files
committed
clean up our environment in the binstub
1 parent f46ec64 commit d4762ee

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/spring/client/binstub.rb

+4
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ class Binstub < Command
2929
# This file loads Spring without using Bundler, in order to be fast.
3030
# It gets overwritten when you run the `spring binstub` command.
3131
32+
# our nri environment is TOO DAMN LONG.
33+
# without this, we often get Argument List Too Long errors
34+
ENV.reject! { |key, _| key.start_with?("NIX_") || key.start_with?("DIRENV_") || key == "PYTHONPATH" }
35+
3236
unless defined?(Spring)
3337
require 'rubygems'
3438
require 'bundler'

0 commit comments

Comments
 (0)