Giter Site home page Giter Site logo

Comments (2)

sigurdm avatar sigurdm commented on September 4, 2024

I am not able to reproduce.

Can you spot something I am doing wrong?

> git clone https://github.com/felangel/mason
> cd mason/packages/mason_api
> pana .
WARNING    Flutter SDK path was not specified, pana will use the default Dart SDK to run `dart analyze` on Flutter packages.
INFO       Running `/usr/local/google/home/sigurdm/.dvm/darts/3.1.2/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 `/usr/local/google/home/sigurdm/.dvm/darts/3.1.2/bin/dart pub get --no-example`...
INFO       Running `/usr/local/google/home/sigurdm/.dvm/darts/3.1.2/bin/dart pub outdated --json --up-to-date --no-dev-dependencies --no-dependency-overrides`...
INFO       Analyzing package...
INFO       Running `/usr/local/google/home/sigurdm/.dvm/darts/3.1.2/bin/dart analyze --format machine lib`...
INFO       Running `git init`...
INFO       Running `git remote add origin https://github.com/felangel/mason`...
INFO       Running `git remote show origin`...
INFO       Running `git fetch --depth 1 --no-recurse-submodules origin master`...
INFO       Running `git ls-tree -r --name-only --full-tree origin/master`...
INFO       Running `git show origin/master:bricks/hooks/hooks/pubspec.yaml`...
INFO       Running `git show origin/master:bricks/random_color/hooks/pubspec.yaml`...
INFO       Running `git show origin/master:packages/mason/pubspec.yaml`...
INFO       Running `git show origin/master:packages/mason/test/fixtures/basic/hooks/pubspec.yaml`...
INFO       Running `git show origin/master:packages/mason/test/fixtures/compile_exception/hooks/pubspec.yaml`...
INFO       Running `git show origin/master:packages/mason/test/fixtures/dependency_install_failure/hooks/pubspec.yaml`...
INFO       Running `git show origin/master:packages/mason/test/fixtures/execution_exception/hooks/pubspec.yaml`...
INFO       Running `git show origin/master:packages/mason/test/fixtures/malformed_pubspec/hooks/pubspec.yaml`...
INFO       Running `git show origin/master:packages/mason/test/fixtures/missing_run/hooks/pubspec.yaml`...
INFO       Running `git show origin/master:packages/mason/test/fixtures/relative_imports/hooks/pubspec.yaml`...
INFO       Running `git show origin/master:packages/mason/test/fixtures/run_exception/hooks/pubspec.yaml`...
INFO       Running `git show origin/master:packages/mason/test/fixtures/unicode_hook/hooks/pubspec.yaml`...
INFO       Running `git show origin/master:packages/mason_api/pubspec.yaml`...
INFO       Running `git show origin/master:packages/mason_cli/pubspec.yaml`...
INFO       Running `git show origin/master:packages/mason_cli/test/bricks/compilation_error/hooks/pubspec.yaml`...
INFO       Running `git show origin/master:packages/mason_cli/test/fixtures/new/hooks/hooks/pubspec.yaml`...
INFO       Running `git show origin/master:packages/mason_logger/pubspec.yaml`...
INFO       Running `/usr/local/google/home/sigurdm/.dvm/darts/3.1.2/bin/dart format --output=none --set-exit-if-changed /tmp/pana_RAXXKO/packages/mason_api/lib`...

## ✓ Follow Dart file conventions (30 / 30)
### [*] 10/10 points: Provide a valid `pubspec.yaml`


### [*] 5/5 points: Provide a valid `README.md`


### [*] 5/5 points: Provide a valid `CHANGELOG.md`


### [*] 10/10 points: Use an OSI-approved license

Detected license: `MIT`.

## ✓ Provide documentation (10 / 10)
### [*] 10/10 points: Package has an example


## ✓ Platform support (20 / 20)
### [*] 20/20 points: Supports 5 of 6 possible platforms (**iOS**, **Android**, Web, **Windows**, **MacOS**, **Linux**)

* ✓ Android
* ✓ iOS
* ✓ Windows
* ✓ Linux
* ✓ MacOS

These platforms are not supported:

<details>
<summary>
Package not compatible with platform Web
</summary>

Because:
* `package:mason_api/mason_api.dart` that imports:
* `package:mason_api/src/mason_api.dart` that imports:
* `package:cli_util/cli_util.dart` that imports:
* `dart:io`
</details>

## ✓ Pass static analysis (50 / 50)
### [*] 50/50 points: code has no errors, warnings, lints, or formatting issues


## ✓ Support up-to-date dependencies (20 / 20)
### [*] 10/10 points: All of the package dependencies are supported in the latest version

|Package|Constraint|Compatible|Latest|
|:-|:-|:-|:-|
|[`cli_util`]|`^0.4.0`|0.4.0|0.4.0|
|[`http`]|`>=0.13.3 <2.0.0`|1.1.0|1.1.0|
|[`json_annotation`]|`^4.4.0`|4.8.1|4.8.1|
|[`meta`]|`^1.7.0`|1.10.0|1.10.0|
|[`path`]|`^1.8.1`|1.8.3|1.8.3|
|[`platform`]|`^3.1.0`|3.1.2|3.1.2|

<details><summary>Transitive dependencies</summary>

|Package|Constraint|Compatible|Latest|
|:-|:-|:-|:-|
|[`async`]|-|2.11.0|2.11.0|
|[`collection`]|-|1.18.0|1.18.0|
|[`http_parser`]|-|4.0.2|4.0.2|
|[`source_span`]|-|1.10.0|1.10.0|
|[`string_scanner`]|-|1.2.0|1.2.0|
|[`term_glyph`]|-|1.2.1|1.2.1|
|[`typed_data`]|-|1.3.2|1.3.2|
</details>

To reproduce run `dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides`.

[`cli_util`]: https://pub.dev/packages/cli_util
[`http`]: https://pub.dev/packages/http
[`json_annotation`]: https://pub.dev/packages/json_annotation
[`meta`]: https://pub.dev/packages/meta
[`path`]: https://pub.dev/packages/path
[`platform`]: https://pub.dev/packages/platform
[`async`]: https://pub.dev/packages/async
[`collection`]: https://pub.dev/packages/collection
[`http_parser`]: https://pub.dev/packages/http_parser
[`source_span`]: https://pub.dev/packages/source_span
[`string_scanner`]: https://pub.dev/packages/string_scanner
[`term_glyph`]: https://pub.dev/packages/term_glyph
[`typed_data`]: https://pub.dev/packages/typed_data


### [*] 10/10 points: Package supports latest stable Dart and Flutter SDKs


Points: 130/130.

pana 0.21.36
Dart SDK version: 3.1.2 (stable) (Tue Sep 12 16:26:23 2023 +0000) on "linux_x64"

from pana.

felangel avatar felangel commented on September 4, 2024

I am not able to reproduce.

Can you spot something I am doing wrong?

> git clone https://github.com/felangel/mason
> cd mason/packages/mason_api
> pana .
WARNING    Flutter SDK path was not specified, pana will use the default Dart SDK to run `dart analyze` on Flutter packages.
INFO       Running `/usr/local/google/home/sigurdm/.dvm/darts/3.1.2/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 `/usr/local/google/home/sigurdm/.dvm/darts/3.1.2/bin/dart pub get --no-example`...
INFO       Running `/usr/local/google/home/sigurdm/.dvm/darts/3.1.2/bin/dart pub outdated --json --up-to-date --no-dev-dependencies --no-dependency-overrides`...
INFO       Analyzing package...
INFO       Running `/usr/local/google/home/sigurdm/.dvm/darts/3.1.2/bin/dart analyze --format machine lib`...
INFO       Running `git init`...
INFO       Running `git remote add origin https://github.com/felangel/mason`...
INFO       Running `git remote show origin`...
INFO       Running `git fetch --depth 1 --no-recurse-submodules origin master`...
INFO       Running `git ls-tree -r --name-only --full-tree origin/master`...
INFO       Running `git show origin/master:bricks/hooks/hooks/pubspec.yaml`...
INFO       Running `git show origin/master:bricks/random_color/hooks/pubspec.yaml`...
INFO       Running `git show origin/master:packages/mason/pubspec.yaml`...
INFO       Running `git show origin/master:packages/mason/test/fixtures/basic/hooks/pubspec.yaml`...
INFO       Running `git show origin/master:packages/mason/test/fixtures/compile_exception/hooks/pubspec.yaml`...
INFO       Running `git show origin/master:packages/mason/test/fixtures/dependency_install_failure/hooks/pubspec.yaml`...
INFO       Running `git show origin/master:packages/mason/test/fixtures/execution_exception/hooks/pubspec.yaml`...
INFO       Running `git show origin/master:packages/mason/test/fixtures/malformed_pubspec/hooks/pubspec.yaml`...
INFO       Running `git show origin/master:packages/mason/test/fixtures/missing_run/hooks/pubspec.yaml`...
INFO       Running `git show origin/master:packages/mason/test/fixtures/relative_imports/hooks/pubspec.yaml`...
INFO       Running `git show origin/master:packages/mason/test/fixtures/run_exception/hooks/pubspec.yaml`...
INFO       Running `git show origin/master:packages/mason/test/fixtures/unicode_hook/hooks/pubspec.yaml`...
INFO       Running `git show origin/master:packages/mason_api/pubspec.yaml`...
INFO       Running `git show origin/master:packages/mason_cli/pubspec.yaml`...
INFO       Running `git show origin/master:packages/mason_cli/test/bricks/compilation_error/hooks/pubspec.yaml`...
INFO       Running `git show origin/master:packages/mason_cli/test/fixtures/new/hooks/hooks/pubspec.yaml`...
INFO       Running `git show origin/master:packages/mason_logger/pubspec.yaml`...
INFO       Running `/usr/local/google/home/sigurdm/.dvm/darts/3.1.2/bin/dart format --output=none --set-exit-if-changed /tmp/pana_RAXXKO/packages/mason_api/lib`...

## ✓ Follow Dart file conventions (30 / 30)
### [*] 10/10 points: Provide a valid `pubspec.yaml`


### [*] 5/5 points: Provide a valid `README.md`


### [*] 5/5 points: Provide a valid `CHANGELOG.md`


### [*] 10/10 points: Use an OSI-approved license

Detected license: `MIT`.

## ✓ Provide documentation (10 / 10)
### [*] 10/10 points: Package has an example


## ✓ Platform support (20 / 20)
### [*] 20/20 points: Supports 5 of 6 possible platforms (**iOS**, **Android**, Web, **Windows**, **MacOS**, **Linux**)

* ✓ Android
* ✓ iOS
* ✓ Windows
* ✓ Linux
* ✓ MacOS

These platforms are not supported:

<details>
<summary>
Package not compatible with platform Web
</summary>

Because:
* `package:mason_api/mason_api.dart` that imports:
* `package:mason_api/src/mason_api.dart` that imports:
* `package:cli_util/cli_util.dart` that imports:
* `dart:io`
</details>

## ✓ Pass static analysis (50 / 50)
### [*] 50/50 points: code has no errors, warnings, lints, or formatting issues


## ✓ Support up-to-date dependencies (20 / 20)
### [*] 10/10 points: All of the package dependencies are supported in the latest version

|Package|Constraint|Compatible|Latest|
|:-|:-|:-|:-|
|[`cli_util`]|`^0.4.0`|0.4.0|0.4.0|
|[`http`]|`>=0.13.3 <2.0.0`|1.1.0|1.1.0|
|[`json_annotation`]|`^4.4.0`|4.8.1|4.8.1|
|[`meta`]|`^1.7.0`|1.10.0|1.10.0|
|[`path`]|`^1.8.1`|1.8.3|1.8.3|
|[`platform`]|`^3.1.0`|3.1.2|3.1.2|

<details><summary>Transitive dependencies</summary>

|Package|Constraint|Compatible|Latest|
|:-|:-|:-|:-|
|[`async`]|-|2.11.0|2.11.0|
|[`collection`]|-|1.18.0|1.18.0|
|[`http_parser`]|-|4.0.2|4.0.2|
|[`source_span`]|-|1.10.0|1.10.0|
|[`string_scanner`]|-|1.2.0|1.2.0|
|[`term_glyph`]|-|1.2.1|1.2.1|
|[`typed_data`]|-|1.3.2|1.3.2|
</details>

To reproduce run `dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides`.

[`cli_util`]: https://pub.dev/packages/cli_util
[`http`]: https://pub.dev/packages/http
[`json_annotation`]: https://pub.dev/packages/json_annotation
[`meta`]: https://pub.dev/packages/meta
[`path`]: https://pub.dev/packages/path
[`platform`]: https://pub.dev/packages/platform
[`async`]: https://pub.dev/packages/async
[`collection`]: https://pub.dev/packages/collection
[`http_parser`]: https://pub.dev/packages/http_parser
[`source_span`]: https://pub.dev/packages/source_span
[`string_scanner`]: https://pub.dev/packages/string_scanner
[`term_glyph`]: https://pub.dev/packages/term_glyph
[`typed_data`]: https://pub.dev/packages/typed_data


### [*] 10/10 points: Package supports latest stable Dart and Flutter SDKs


Points: 130/130.

pana 0.21.36 Dart SDK version: 3.1.2 (stable) (Tue Sep 12 16:26:23 2023 +0000) on "linux_x64"

I think you need to checkout the specific commit:

git checkout 6225b2e3f8bffbf35975d5a567acf87b17df8043

and also run pana from packages/mason_cli instead of packages/mason_api

cd packages/mason_cli && pana .

from pana.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.