Skip to content

Ensure dataset is writable - #66

Merged
rossant merged 1 commit into
cortex-lab:masterfrom
ghisvail:patch-1
Oct 1, 2026
Merged

rossant merged 1 commit into
cortex-lab:masterfrom
ghisvail:patch-1

Conversation

@ghisvail

@ghisvail ghisvail commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

This patch fixes a specific use case where packaging infrastructures (Arch, Debian, Guix, etc.), which often run builds in a sandbox environment without network access, would download and provide external data in a read-only cache.

In this case, the dataset preparation fixture would copy the data as is, with the read-only permissions, and raise a PermissionError when the test setup tries to alter the data. The easy fix is to ensure the copied data are writable, by adding a specific path.chmod call right after shutil.copy.

@rossant
rossant merged commit 4d95d6e into cortex-lab:master Oct 1, 2026
@rossant rossant mentioned this pull request Oct 2, 2026
17 tasks done
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