Skip to content

Report the name of an unreadable directory.#1523

Merged
mosteo merged 2 commits into
alire-project:masterfrom
simonjwright:report-unreadable-dir
Jan 15, 2024
Merged

Report the name of an unreadable directory.#1523
mosteo merged 2 commits into
alire-project:masterfrom
simonjwright:report-unreadable-dir

Conversation

@simonjwright

Copy link
Copy Markdown
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

mosteo commented Jan 15, 2024

Copy link
Copy Markdown
Member

Thanks, @simonjwright, and sorry for the silence.

@mosteo mosteo merged commit ac1b9d7 into alire-project:master Jan 15, 2024
@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