Skip to content

Fix to be usable with monorepos using Pub workspaces#86

Open
myConsciousness wants to merge 1 commit intofluttercommunity:masterfrom
myConsciousness:fix/monorepo-pub-workspaces
Open

Fix to be usable with monorepos using Pub workspaces#86
myConsciousness wants to merge 1 commit intofluttercommunity:masterfrom
myConsciousness:fix/monorepo-pub-workspaces

Conversation

@myConsciousness
Copy link
Copy Markdown

- Check if pubspec.lock exists before trying to read it
- Prevents crashes when running in monorepo environments
- Fixes issue fluttercommunity#85
@myConsciousness
Copy link
Copy Markdown
Author

Hi @vkammerer, could you check this PR?

@vkammerer
Copy link
Copy Markdown

@myConsciousness I have good news for you and your PR.

@mafreud is going to be the new maintainer. As soon as he is granted access to the repo and to the pub.dev account, your PR will move forward.

@myConsciousness
Copy link
Copy Markdown
Author

If you're struggling with the same error and this PR hasn't been merged yet, temporarily use the following fork as a workaround. This fix works perfectly in my monorepo project.

Add the following to your pubspec.yaml:

dev_dependencies:
  import_sorter:
    git:
      url: https://github.com/myConsciousness/import_sorter.git
      ref: fix/monorepo-pub-workspaces

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants