diff --git a/copy_with_extension_gen/pubspec.yaml b/copy_with_extension_gen/pubspec.yaml
index 7981c2a..5d97067 100644
--- a/copy_with_extension_gen/pubspec.yaml
+++ b/copy_with_extension_gen/pubspec.yaml
@@ -9,7 +9,7 @@ environment:
   sdk: ">=3.0.0 <4.0.0"
 
 dependencies:
-  analyzer: ">=2.0.0 <6.0.0"
+  analyzer: ">=2.0.0 <7.0.0"
   build: ^2.0.0
   source_gen: ^1.0.0
   copy_with_extension: ^5.0.0