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

Pedantic packages flag ignoring local packages #1281

Open
onslaughtq opened this issue Sep 5, 2024 · 3 comments
Open

Pedantic packages flag ignoring local packages #1281

onslaughtq opened this issue Sep 5, 2024 · 3 comments
Labels

Comments

@onslaughtq
Copy link

With the latest version of spago, 0.93.39, we are having an issue with using pedantic packages. It is reporting that packages, which are defined in the same repo are not needed.

Our setup is

- packageA
|  -- src/
| -- spago.yaml (with a workspace section)
- packageB
| -- src/
| -- spago.yaml (also with a workspace section)

Our packageA lists packageB as a dependency in the package sectionand also includes a reference topackageB` as an extra package in the workspace, i.e.

package:
  dependcies:
    -packageB
workspace:
  extraPackages:
    packageB:
      path: ../packageB

With this setup, packageB is now being listed as unused, even though it is definitely used by package A.

@f-f
Copy link
Member

f-f commented Sep 5, 2024

Would you be able to put together a small example repo that demonstrates the issue so I can have a look at it?

@onslaughtq
Copy link
Author

I have published a branch pedantic-packages-broken to https://github.com/onslaughtq/spago-test that can be used as an example.

@f-f
Copy link
Member

f-f commented Sep 7, 2024

Thanks! I can replicate the issue - not sure where it's coming from, but it is a bug

@f-f f-f added the bug label Sep 7, 2024
@f-f f-f changed the title Pedantic Packages broken Pedantic packages flag ignoring local packages Sep 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants