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

Package Publish Fails #61

Closed
getBoolean opened this issue Nov 25, 2023 · 3 comments
Closed

Package Publish Fails #61

getBoolean opened this issue Nov 25, 2023 · 3 comments

Comments

@getBoolean
Copy link

I'm attempting to run dart pub publish --dry-run in my https://github.com/getBoolean/dart_holodex_api repo, but I am getting this error.

Tested on Windows 11

Resolving dependencies... 
Got dependencies!
Invalid argument (beneath): ../../../../dev/GitHub/dart_holodex_api: "must be relative and normalized"
package:pub/src/ignore.dart 229:7         Ignore.listFiles
package:pub/src/package.dart 232:19       Package.listFiles
package:pub/src/command/lish.dart 268:33  LishCommand.runProtected
This is an unexpected error. The full log and other details are collected in:

    C:\Users\Boolean\.puro\shared\pub_cache\log\pub_log.txt

Consider creating an issue on https://github.com/dart-lang/pub/issues/new
and attaching the relevant parts of that log file.
@pingbird
Copy link
Owner

I was able to reproduce this issue on Windows when the dart_holodex_api folder is inside a symlink, it can also be reproduced without puro.

This appears to be a bug in the pub tool, I suggest filing an issue at https://github.com/dart-lang/pub/issues/new and as a workaround you can run the pub tool inside the real, non-symlinked path.

@getBoolean
Copy link
Author

Hmm, thats odd. I don't think I have a symlink here. I'll create the issue.

@getBoolean
Copy link
Author

My repo is not in a symlink, but I've created the issue

PowerShell script to check for symlinks:

$ ((get-item B:\dev).Attributes.ToString())
Directory
$ ((get-item B:\dev\GitHub).Attributes.ToString())
Directory
$ ((get-item B:\dev\GitHub\dart_holodex_api).Attributes.ToString())
Directory

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

No branches or pull requests

2 participants