Skip to content

Commit

Permalink
Fix sorbet errors
Browse files Browse the repository at this point in the history
  • Loading branch information
markhallen committed Feb 4, 2025
1 parent d83d552 commit 17331d4
Show file tree
Hide file tree
Showing 5 changed files with 1,085 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ gem "dependabot-terraform", path: "terraform"
gem "sorbet", "0.5.11630", group: :development
gem "tapioca", "0.16.6", require: false, group: :development

gem "zeitwerk", "~> 2.7"

common_gemspec = File.expand_path("common/dependabot-common.gemspec", __dir__)

deps_shared_with_common = %w(
Expand Down
2 changes: 2 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ GEM
yard-sorbet (0.9.0)
sorbet-runtime
yard
zeitwerk (2.7.1)

PLATFORMS
aarch64-linux
Expand Down Expand Up @@ -413,6 +414,7 @@ DEPENDENCIES
vcr (~> 6.1)
webmock (~> 3.18)
webrick (>= 1.7)
zeitwerk (~> 2.7)

BUNDLED WITH
2.6.3
10 changes: 10 additions & 0 deletions javascript/lib/dependabot/bun/file_parser/bun_lock.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,16 @@ def parse_details(entry)
end
end
end

sig { override.returns(T::Array[Dependabot::Dependency]) }
def parse
[]
end

private

sig { override.void }
def check_required_files; end
end
end
end
4 changes: 2 additions & 2 deletions javascript/lib/dependabot/bun/package_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ class PackageManager < Ecosystem::VersionManager

# In Bun 1.1.39, the lockfile format was changed from a binary bun.lockb to a text-based bun.lock.
# https://bun.sh/blog/bun-lock-text-lockfile
MIN_SUPPORTED_VERSION = T.let(Version.new("1.1.39"), Version)
SUPPORTED_VERSIONS = T.let([MIN_SUPPORTED_VERSION].freeze, T::Array[Version])
MIN_SUPPORTED_VERSION = T.let(Version.new("1.1.39"), Javascript::Version)
SUPPORTED_VERSIONS = T.let([MIN_SUPPORTED_VERSION].freeze, T::Array[Javascript::Version])
DEPRECATED_VERSIONS = T.let([].freeze, T::Array[Version])

sig do
Expand Down
Loading

0 comments on commit 17331d4

Please # to comment.