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

Windows fails to validate pubspec.yaml due to unnormalized path separator #1207

Open
Desdaemon opened this issue Mar 18, 2023 · 3 comments
Open
Labels
type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@Desdaemon
Copy link

Description

We have a project where the Dart library lies in a child directory of the repository. When running Pana from within the library, it resolves the path to child/pubspec.yaml, which fails normalization on Windows and throws this error:

INFO       Unable to parse `pubspec.yaml` from git repository. Invalid argument(s): Path "child/pubspec.yaml" is not normalized.
           Invalid argument(s): Path "child/pubspec.yaml" is not normalized.

On other platforms, which mostly use / as the path separator, no issues are raised.

Reproducing

Run Pana within the frb_dart directory of this repository.

@sigurdm sigurdm added the type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) label Mar 21, 2023
@Boehrsi
Copy link

Boehrsi commented May 4, 2023

I can also confirm this e.g. for my https://github.com/Boehrsi/device_marketing_names library. Pana on the GitHub CI (Linux) works fine, while on my local system (Windows 11) the mentioned error is thrown. Would be great to have a fix.

@sigurdm
Copy link
Contributor

sigurdm commented Oct 10, 2024

Still relevant

@thorizer
Copy link

any update? 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

4 participants