You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Observe that the output indicates that the package is missing points, but the process completes normally.
Output
INFO Running /Users/nejrd/development/flutter/bin/cache/dart-sdk/bin/dart --version...
INFO Running flutter --no-version-check --version --machine...
WARNING pana might update or modify files in ..
Analysis will begin in 15 seconds, hit CTRL+C to abort it.
To remove this message, use --no-warning.
INFO Running git rev-parse --show-toplevel...
INFO Running flutter --no-version-check packages pub upgrade --verbose...
SEVERE Problem with dart pub upgrade
Bad state: For amplify_analytics_plugin_interface, the parsed version null did not match the locked version 0.4.0.
#0 _validateLockedVersions. (package:pana/src/pkg_resolution.dart:221:11) #1 SplayTreeMap.forEach (dart:collection/splay_tree.dart:604:8) #2 _validateLockedVersions (package:pana/src/pkg_resolution.dart:217:12) #3 createPkgResolution (package:pana/src/pkg_resolution.dart:203:5) #4 PackageContext.resolveDependencies (package:pana/src/package_context.dart:67:26)
#8 main (file:///Users/nejrd/.pub-cache/hosted/pub.dartlang.org/pana-0.21.7/bin/pana.dart:172:19)
INFO Analyzing package...
INFO Running /Users/nejrd/development/flutter/bin/cache/dart-sdk/bin/dart analyze --format machine lib...
INFO Running flutter --no-version-check format --output=none --set-exit-if-changed /private/var/folders/3n/3plhqvn96jq6thcpd50d2pgh0000gr/T/pana_0Ya6tg/packages/amplify_authenticator/lib...
INFO Running /Users/nejrd/development/flutter/bin/cache/dart-sdk/bin/dart pub get ....
INFO Running /Users/nejrd/development/flutter/bin/cache/dart-sdk/bin/dart pub outdated --json --up-to-date --no-dev-dependencies --no-dependency-overrides...
✓ Follow Dart file conventions (20 / 20)
[*] 10/10 points: Provide a valid pubspec.yaml
[*] 5/5 points: Provide a valid README.md
[*] 5/5 points: Provide a valid CHANGELOG.md
✓ Provide documentation (10 / 10)
[*] 10/10 points: Package has an example
Found example at: example/lib/main.dart
✓ Platform Support (20 / 20)
[*] 20/20 points: Supports 2 of 6 possible platforms (iOS, Android, Web, Windows, MacOS, Linux)
✓ Android
✓ iOS
These platforms are not supported:
Package does not support platform `Windows`.
Because:
package:amplify_authenticator/amplify_authenticator.dart that imports:
package:amplify_authenticator/src/widgets/form_field.dart that imports:
package:amplify_authenticator/src/widgets/form.dart that imports:
package:amplify_flutter/amplify_flutter.dart that declares support for platforms: Android, iOS.
Package does not support platform `Linux`.
Because:
package:amplify_authenticator/amplify_authenticator.dart that imports:
package:amplify_authenticator/src/widgets/form_field.dart that imports:
package:amplify_authenticator/src/widgets/form.dart that imports:
package:amplify_flutter/amplify_flutter.dart that declares support for platforms: Android, iOS.
Package does not support platform `macOS`.
Because:
package:amplify_authenticator/amplify_authenticator.dart that imports:
package:amplify_authenticator/src/widgets/form_field.dart that imports:
package:amplify_authenticator/src/widgets/form.dart that imports:
package:amplify_flutter/amplify_flutter.dart that declares support for platforms: Android, iOS.
Package does not support platform `Web`.
Because:
package:amplify_authenticator/amplify_authenticator.dart that imports:
package:amplify_authenticator/src/widgets/form_field.dart that imports:
package:amplify_authenticator/src/widgets/form.dart that imports:
package:amplify_flutter/amplify_flutter.dart that declares support for platforms: Android, iOS.
✗ Pass static analysis (20 / 30)
[~] 20/30 points: code has no errors, warnings, lints, or formatting issues
INFO: Don't import implementation files from another package.
Never mind. There is a non 0 exit code. I had assumed the exit code was 0 since the log output is identical to the output with --exit-code-threshold omitted. It might make sense differentiate the log output for a non-zero exit (example: --set-exit-if-changed for flutter format).
I am going to close this issue though since it is working as expected.
Issue
Running
pana --exit-code-threshold 0 .
does not cause a non-zero exit even when the package is missing points.Reproduction steps
pana --exit-code-threshold 0 .
Output
INFO Running
/Users/nejrd/development/flutter/bin/cache/dart-sdk/bin/dart --version
...INFO Running
flutter --no-version-check --version --machine
...WARNING pana might update or modify files in
.
.Analysis will begin in 15 seconds, hit CTRL+C to abort it.
To remove this message, use
--no-warning
.INFO Running
git rev-parse --show-toplevel
...INFO Running
flutter --no-version-check packages pub upgrade --verbose
...SEVERE Problem with
dart pub upgrade
Bad state: For amplify_analytics_plugin_interface, the parsed version null did not match the locked version 0.4.0.
#0 _validateLockedVersions. (package:pana/src/pkg_resolution.dart:221:11)
#1 SplayTreeMap.forEach (dart:collection/splay_tree.dart:604:8)
#2 _validateLockedVersions (package:pana/src/pkg_resolution.dart:217:12)
#3 createPkgResolution (package:pana/src/pkg_resolution.dart:203:5)
#4 PackageContext.resolveDependencies (package:pana/src/package_context.dart:67:26)
#5 PackageAnalyzer._inspect (package:pana/src/package_analyzer.dart:138:27)
#6 PackageAnalyzer.inspectDir. (package:pana/src/package_analyzer.dart:91:14)
#7 withTempDir (package:pana/src/utils.dart:233:12)
#8 main (file:///Users/nejrd/.pub-cache/hosted/pub.dartlang.org/pana-0.21.7/bin/pana.dart:172:19)
INFO Analyzing package...
INFO Running
/Users/nejrd/development/flutter/bin/cache/dart-sdk/bin/dart analyze --format machine lib
...INFO Running
flutter --no-version-check format --output=none --set-exit-if-changed /private/var/folders/3n/3plhqvn96jq6thcpd50d2pgh0000gr/T/pana_0Ya6tg/packages/amplify_authenticator/lib
...INFO Running
/Users/nejrd/development/flutter/bin/cache/dart-sdk/bin/dart pub get .
...INFO Running
/Users/nejrd/development/flutter/bin/cache/dart-sdk/bin/dart pub outdated --json --up-to-date --no-dev-dependencies --no-dependency-overrides
...✓ Follow Dart file conventions (20 / 20)
[*] 10/10 points: Provide a valid
pubspec.yaml
[*] 5/5 points: Provide a valid
README.md
[*] 5/5 points: Provide a valid
CHANGELOG.md
✓ Provide documentation (10 / 10)
[*] 10/10 points: Package has an example
example/lib/main.dart
✓ Platform Support (20 / 20)
[*] 20/20 points: Supports 2 of 6 possible platforms (iOS, Android, Web, Windows, MacOS, Linux)
These platforms are not supported:
Package does not support platform `Windows`.
Because:
package:amplify_authenticator/amplify_authenticator.dart
that imports:package:amplify_authenticator/src/widgets/form_field.dart
that imports:package:amplify_authenticator/src/widgets/form.dart
that imports:package:amplify_flutter/amplify_flutter.dart
that declares support for platforms:Android
,iOS
.Package does not support platform `Linux`.
Because:
package:amplify_authenticator/amplify_authenticator.dart
that imports:package:amplify_authenticator/src/widgets/form_field.dart
that imports:package:amplify_authenticator/src/widgets/form.dart
that imports:package:amplify_flutter/amplify_flutter.dart
that declares support for platforms:Android
,iOS
.Package does not support platform `macOS`.
Because:
package:amplify_authenticator/amplify_authenticator.dart
that imports:package:amplify_authenticator/src/widgets/form_field.dart
that imports:package:amplify_authenticator/src/widgets/form.dart
that imports:package:amplify_flutter/amplify_flutter.dart
that declares support for platforms:Android
,iOS
.Package does not support platform `Web`.
Because:
package:amplify_authenticator/amplify_authenticator.dart
that imports:package:amplify_authenticator/src/widgets/form_field.dart
that imports:package:amplify_authenticator/src/widgets/form.dart
that imports:package:amplify_flutter/amplify_flutter.dart
that declares support for platforms:Android
,iOS
.✗ Pass static analysis (20 / 30)
[~] 20/30 points: code has no errors, warnings, lints, or formatting issues
INFO: Don't import implementation files from another package.
lib/src/services/amplify_auth_service.dart:21:8
To reproduce make sure you are using the lints_core and run
flutter analyze lib/src/services/amplify_auth_service.dart
✓ Support up-to-date dependencies (20 / 20)
[*] 10/10 points: All of the package dependencies are supported in the latest version
amplify_auth_cognito
>=0.3.0 <0.5.0
amplify_auth_plugin_interface
>=0.3.0 <0.5.0
amplify_core
>=0.3.0 <0.5.0
amplify_flutter
>=0.3.0 <0.5.0
collection
^1.15.0
flutter
flutter
flutter_localizations
flutter
intl
^0.17.0
Transitive dependencies
amplify_analytics_plugin_interface
amplify_api_plugin_interface
amplify_datastore_plugin_interface
amplify_storage_plugin_interface
characters
clock
crypto
date_time_format
json_annotation
material_color_utilities
meta
plugin_platform_interface
sky_engine
typed_data
uuid
vector_math
To reproduce run
dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides
.[*] 10/10 points: Package supports latest stable Dart and Flutter SDKs
✓ Support sound null safety (20 / 20)
[*] 20/20 points: Package and dependencies are fully migrated to null safety!
Points: 110/120.
Am I misunderstanding the intention behind
--exit-code-threshold
?The text was updated successfully, but these errors were encountered: