Skip to content

health workflow pub workspaces support #354

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

Closed
dcharkes opened this issue Apr 8, 2025 · 2 comments · Fixed by #355
Closed

health workflow pub workspaces support #354

dcharkes opened this issue Apr 8, 2025 · 2 comments · Fixed by #355

Comments

@dcharkes
Copy link
Contributor

dcharkes commented Apr 8, 2025

The health workflow for leaked symbols and breaking API changes from https://github.com/dart-lang/ecosystem/blob/main/.github/workflows/health.yaml does not seem to support pub workspaces yet.

Could not find workspace for package pkgs/native_assets_cli
Error: PathNotFoundException: Cannot copy file to '/tmp/YTYJVZ/.dart_tool/package_config.json', path = 'pkgs/native_assets_cli/.dart_tool/package_config.json' (OS Error: No such file or directory, errno = 2)

The .dart_tool/package_config.json is two directories up, where the pub workspace is defined.

Logs:

@dcharkes
Copy link
Contributor Author

dcharkes commented Apr 8, 2025

We need to incorporate:

@dcharkes
Copy link
Contributor Author

dcharkes commented Apr 8, 2025

Or maybe that's not the issue

$ pwd
/Users/dacoharkes/src/dart-lang/native/pkgs/native_assets_cli
$ dart /Users/dacoharkes/src/bmw-tech/dart_apitool/bin/main.dart extract --input /Users/dacoharkes/src/dart-lang/native/pkgs/native_assets_cli --output /var/folders/2y/mngq9h194yzglt4kzttzfq6800klzg/T/oQfK9y/leaks.json    
# this succeeds

$ dart /Users/dacoharkes/src/bmw-tech/dart_apitool/bin/main.dart extract --input . --output /var/folders/2y/mngq9h194yzglt4kzttzfq6800klzg/T/oQfK9y/leaks.json
Could not find workspace for package .
Error: PathNotFoundException: Cannot copy file to '/var/folders/2y/mngq9h194yzglt4kzttzfq6800klzg/T/urSghM/.dart_tool/package_config.json', path = './.dart_tool/package_config.json' (OS Error: No such file or directory, errno = 2)

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

Successfully merging a pull request may close this issue.

1 participant