Closed sebastianbuechler closed 8 months ago
The lint
package should preferably be depended on a package level, not in the root pubspec.yaml.
packages/
|__ your_package/
|__ pubspec.yaml <-- in here
pubspec.yaml <-- Only melos version and sdk version
@sebastianbuechler here is a good example of how the directory structure can look like to not have a package/app in the root: https://github.com/invertase/melos/issues/616#issuecomment-1856559131
I'll close this meanwhile since Melos doesn't really support having a package or app at the root of the monorepo.
@spydon I don't have an app in root but specify the workspace there with a melos config file. The issue still persists.
@spydon I don't have an app in root but specify the workspace there with a melos config file. The issue still persists.
Can you post your root pubspec?
@spydon I don't have an app in root but specify the workspace there with a melos config file. The issue still persists.
Can you post your root pubspec?
Sorry for the late reply. Here it is:
name: company_workspace
environment:
sdk: '>=3.0.0 <4.0.0'
dev_dependencies:
melos: ^4.0.0
lint: ^2.1.2
@sebastianbuechler the lint
package shouldn't be in there, it should be in the packages pubspec files.
Is there an existing feature request for this?
Command
No response
Description
When using the latest version of the
lint
package melos is incompatible:Reasoning
Keeping dependencies up to date.
Additional context and comments
No response