Skip to content

Commit

Permalink
Explicitly require dependabot/utils before usage (#7800)
Browse files Browse the repository at this point in the history
All other ecosystems do it:

```
$ rg ^Dependabot::Utils.register_always_clone -B1
go_modules/lib/dependabot/go_modules.rb
21-require "dependabot/utils"
22:Dependabot::Utils.register_always_clone("go_modules")

pub/lib/dependabot/pub.rb
20-require "dependabot/utils"
21:Dependabot::Utils.register_always_clone("pub")

swift/lib/dependabot/swift.rb
21-require "dependabot/utils"
22:Dependabot::Utils.register_always_clone("swift")

terraform/lib/dependabot/terraform.rb
21-require "dependabot/utils"
22:Dependabot::Utils.register_always_clone("terraform")

npm_and_yarn/lib/dependabot/npm_and_yarn.rb
28-require "dependabot/utils"
29:Dependabot::Utils.register_always_clone("npm_and_yarn")
```
  • Loading branch information
deivid-rodriguez authored Aug 11, 2023
1 parent b3f6932 commit 84e3dbf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions npm_and_yarn/lib/dependabot/npm_and_yarn.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@
end
)

require "dependabot/utils"
Dependabot::Utils.register_always_clone("npm_and_yarn")

0 comments on commit 84e3dbf

Please sign in to comment.