Skip to content

Commit 2429eca

Browse files
committed
Debug
1 parent 796ad25 commit 2429eca

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

exe/importmap-update

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,11 @@ end
9090

9191
def build_plan_from_live(config, runner)
9292
outdated_result = runner.run("bin/importmap", "outdated")
93+
warn "bin/outdated output"
94+
warn outdated_result.stdout
9395
audit_result = runner.run("bin/importmap", "audit")
96+
warn "bin/audit output"
97+
warn audit_result.stdout
9498
outdated = Importmap::Update::Parsers::OutdatedParser.parse(outdated_result.stdout)
9599
vulnerabilities = Importmap::Update::Parsers::AuditParser.parse(audit_result.stdout)
96100
Importmap::Update::Planner.new(

lib/executor.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def failed?
4444
def initialize(
4545
gh:,
4646
git:,
47-
base_branch:, commit_message_prefix:, runner: Commands::ShellRunner.new,
47+
base_branch:, commit_message_prefix:, runner: Commands::ShellRunner.new(cwd: ENV.fetch("RAILS_ROOT", ".")),
4848
labels: [],
4949
dry_run: false,
5050
body_renderer: nil

lib/git_client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module Update
99
# force_push action). Every command runs through the injected runner
1010
# so tests can replay fixtures the same way they do for gh.
1111
class GitClient
12-
def initialize(author_name:, author_email:, runner: Commands::ShellRunner.new)
12+
def initialize(author_name:, author_email:, runner: Commands::ShellRunner.new(cwd: ENV.fetch("RAILS_ROOT", ".")))
1313
@runner = runner
1414
@author_name = author_name
1515
@author_email = author_email

0 commit comments

Comments
 (0)