Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: mason list errors when brick in mason.yaml does not exist #1529

Open
bryanoltman opened this issue Feb 20, 2025 · 0 comments
Open

fix: mason list errors when brick in mason.yaml does not exist #1529

bryanoltman opened this issue Feb 20, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@bryanoltman
Copy link

bryanoltman commented Feb 20, 2025

Description

I set up mason_cli a while back and haven't touched it in a while. I ran mason init, which helpfully told me that I already had a mason.yaml file. When I ran mason list to see which bricks were installed, I got the less helpful error message:

Could not find brick at /Users/bryanoltman/.mason-cache/hosted/registry.brickhub.dev/very_good_dart_package_0.4.1

It appears as though this brick does exist (https://brickhub.dev/bricks/very_good_dart_package/0.8.0) and I'm several versions behind, which might be the cause?

mason.yaml:

bricks:
  very_good_dart_package: ^0.4.0
  flutter_bloc_feature: ^0.4.0

mason-lock.json:

{"bricks":{"very_good_dart_package":"0.4.1","flutter_bloc_feature":"0.4.0"}}

.mason/bricks.json:

{"flutter_bloc_feature":"/Users/bryanoltman/.mason-cache/hosted/registry.brickhub.dev/flutter_bloc_feature_0.4.0","very_good_dart_package":"/Users/bryanoltman/.mason-cache/hosted/registry.brickhub.dev/very_good_dart_package_0.4.1"}

Additional context: I just upgraded to Flutter 3.29 (which includes a new Dart version) and reran dart pub global activate mason_cli

Even more context: this issue persists after deleting ~/.mason_cache

Expected Behavior

If my understanding of what is happening is correct, I'd expect a list with warnings for out-of-date/discontinued/deleted bricks.

@bryanoltman bryanoltman added the bug Something isn't working label Feb 20, 2025
@felangel felangel self-assigned this Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants