Closed Cod-e-Codes closed 1 week ago
To me it seems that somehow https://github.com/dart-lang/pub/blob/df3664d17fd146ccd19b32820a022404da91f6d3/lib/src/package.dart#L265 fails to give a proper relative path. (I want './' but get '../../../../../Users/codyl/AndroidStudioProjects/flutter_scroll_animation'.
Not sure how it happens (and why we have not seen it before), but probably it has to do with package:paths relative
command not working with the /c/Users/codyl/AndroidStudioProjects/flutter_scroll_animation
path given back from git.
@Cod-e-Codes is this first time you try to publish from this setup? Is this persistent?
@danielamp are you having the same issue?
I figured it out. Because the Windows file structure uses backslashes, it was having issues. I ran it in git bash and worked fine.
So it seems like we might be incompatible with non-git-bash cmd on windows.
Hmm if I clone your repo and run git rev-parse --show-toplevel
I get C:/Users/sigurdm/flutter_scroll_animation
But it seems from the log that you get /c/Users/codyl/AndroidStudioProjects/flutter_scroll_animation
Not sure what is the discrepancy here. Maybe the way git is configured.
@Cod-e-Codes do you have any information about your setup in the failing case I could use to reproduce the error?
@sigurdm No, just the stuff I've already shared. The error is fixed. We can close this