Skip to content

Commit baa85eb

Browse files
Remove beta ecosystems feature flag for sbt (#15151)
* handle pubspec validation errors gracefully * remove check for beta ecosystems for sbt ga
1 parent f5e555f commit baa85eb

2 files changed

Lines changed: 0 additions & 20 deletions

File tree

sbt/lib/dependabot/sbt/file_fetcher.rb

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,6 @@ def self.required_files_message
3131

3232
sig { override.returns(T::Array[DependencyFile]) }
3333
def fetch_files
34-
unless allow_beta_ecosystems?
35-
raise Dependabot::DependencyFileNotFound.new(
36-
nil,
37-
"Sbt support is currently in beta. Enable the beta ecosystems experiment to use it " \
38-
"(for example, run bin/dry-run.rb --enable-beta-ecosystems)."
39-
)
40-
end
41-
4234
fetched_files = T.let([], T::Array[DependencyFile])
4335

4436
fetched_files << build_sbt

sbt/spec/dependabot/sbt/file_fetcher_spec.rb

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434

3535
before do
3636
allow(file_fetcher_instance).to receive(:commit).and_return("sha")
37-
Dependabot::Experiments.register(:enable_beta_ecosystems, true)
3837
end
3938

4039
it_behaves_like "a dependency file fetcher"
@@ -204,15 +203,4 @@
204203
.to match_array(%w(build.sbt project/build.properties core/build.sbt))
205204
end
206205
end
207-
208-
context "when beta ecosystems are not enabled" do
209-
before do
210-
Dependabot::Experiments.register(:enable_beta_ecosystems, false)
211-
end
212-
213-
it "raises a DependencyFileNotFound error" do
214-
expect { file_fetcher_instance.files }
215-
.to raise_error(Dependabot::DependencyFileNotFound)
216-
end
217-
end
218206
end

0 commit comments

Comments
 (0)