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

Report the name of an unreadable directory. #1523

Merged
merged 2 commits into from
Jan 15, 2024

Conversation

simonjwright
Copy link
Contributor

While working on a new external, I tried adding my local alire-index before the community index for testing. The error reported was "Not a readable directory". After 2 hours investigation (gdb ...) I realised that I’d been trying to add alr-index rather than alire-index.

This patch (which is in the style of other Outcome_Failure messages) would probably have saved that time!

Apologies for creating a new PR having closed #1522 - I’ve squashed the 'test' commits, including one last one that passes all but Windows tests. I can’t see what’s wrong with the Windows tests - there are obvious differences in the number of backslashes, but they’re in a part I haven’t changed!

Test log in my repo

  * src/alire/alire-index_on_disk.adb (New_Handler.Process_Local_Index):
      If the Path isn't a readable directory (e.g. because it doesn't
      exist), add it to the message in Outcome_Failure.
  * testsuite/tests/index/local-index-not-found/test.py: updated for
      new 'not a readable directory' report format.
@mosteo
Copy link
Member

mosteo commented Jan 15, 2024

Thanks, @simonjwright, and sorry for the silence.

@mosteo mosteo merged commit ac1b9d7 into alire-project:master Jan 15, 2024
13 checks passed
@simonjwright simonjwright deleted the report-unreadable-dir branch January 15, 2024 17:12
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 this pull request may close these issues.

2 participants