From 2bec69af6ad5fac9bda505a8c4fde6dd5dd794d2 Mon Sep 17 00:00:00 2001 From: Nick Cooke <36927374+ncooke3@users.noreply.github.com> Date: Thu, 30 Nov 2023 11:26:48 -0500 Subject: [PATCH 1/3] [Release Tooling] Stop sourcing .bash_profile when running generated shell scripts --- ReleaseTooling/Sources/Utils/ShellUtils.swift | 7 ------- 1 file changed, 7 deletions(-) diff --git a/ReleaseTooling/Sources/Utils/ShellUtils.swift b/ReleaseTooling/Sources/Utils/ShellUtils.swift index 17db91708bd..d145425f33b 100644 --- a/ReleaseTooling/Sources/Utils/ShellUtils.swift +++ b/ReleaseTooling/Sources/Utils/ShellUtils.swift @@ -62,16 +62,9 @@ public extension Shell { // Write the temporary script contents to the script's path. CocoaPods complains when LANG // isn't set in the environment, so explicitly set it here. The `/usr/local/git/current/bin` // is to allow the `sso` protocol if it's there. - // The user's .bash_profile, if it exists, is sourced to modify the - // shell's PATH with any configuration (e.g. adding Ruby to path) - // that may be needed to run the given command. let contents = """ export PATH="/usr/local/bin:/usr/local/git/current/bin:$PATH" export LANG="en_US.UTF-8" - BASH_PROFILE_PATH="~/.bash_profile" - if [ -f "$BASH_PROFILE_PATH" ]; then - source $BASH_PROFILE_PATH - fi \(command) """ try contents.write(to: scriptPath, atomically: true, encoding: .utf8) From 3490a7af1ace8325ad769d73964e914c2c4b2e6a Mon Sep 17 00:00:00 2001 From: Nick Cooke <36927374+ncooke3@users.noreply.github.com> Date: Thu, 30 Nov 2023 11:26:57 -0500 Subject: [PATCH 2/3] Trigger global CI run --- Gemfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Gemfile b/Gemfile index 77136b400b9..351afc7086d 100644 --- a/Gemfile +++ b/Gemfile @@ -15,3 +15,4 @@ source 'https://rubygems.org' gem 'cocoapods', '1.14.3' gem 'cocoapods-generate', '2.2.5' gem 'danger', '8.4.5' +# trigger global CI From 0bad73d92bd98a92963e5bef73b35c6c0ec15ca5 Mon Sep 17 00:00:00 2001 From: Nick Cooke <36927374+ncooke3@users.noreply.github.com> Date: Tue, 26 Dec 2023 13:05:56 -0500 Subject: [PATCH 3/3] [skip ci] Revert Gemfile --- Gemfile | 1 - 1 file changed, 1 deletion(-) diff --git a/Gemfile b/Gemfile index 351afc7086d..77136b400b9 100644 --- a/Gemfile +++ b/Gemfile @@ -15,4 +15,3 @@ source 'https://rubygems.org' gem 'cocoapods', '1.14.3' gem 'cocoapods-generate', '2.2.5' gem 'danger', '8.4.5' -# trigger global CI