Skip to content

Commit 153f79c

Browse files
committed
Always use directories in input
1 parent 2e15d2a commit 153f79c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd/dependabot/internal/cmd/update.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ func readArguments(cmd *cobra.Command, flags *UpdateFlags) (*model.Input, error)
269269
Source: model.Source{
270270
Provider: flags.provider,
271271
Repo: repo,
272-
Directory: flags.directory,
272+
Directories: []string{flags.directory},
273273
Commit: flags.commit,
274274
Branch: flags.branch,
275275
Hostname: &hostname,

testdata/scripts/input.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ dependabot update go_modules dependabot/cli --dep golang.org/x/image --updater-i
1919
stderr '"allowed-updates":\[\{"dependency-name":"golang.org/x/image"\}\]'
2020

2121
dependabot update go_modules dependabot/cli --directory /code --updater-image input-verify-updater
22-
stderr '"directory":"\/code"'
22+
stderr '"directories":\["\/code"\]'
2323

2424
exec docker rmi -f input-verify-updater
2525

0 commit comments

Comments
 (0)