Skip to content

Make every directory we load look like a .mint directory#159

Merged
kylekthompson merged 1 commit intomainfrom
kt/hard-code-dot-mint
Jun 12, 2025
Merged

Make every directory we load look like a .mint directory#159
kylekthompson merged 1 commit intomainfrom
kt/hard-code-dot-mint

Conversation

@kylekthompson
Copy link
Member

@kylekthompson kylekthompson commented Jun 12, 2025

v1.6.0 introduced a regression when --dir is provided a directory named something other than .rwx or .mint. Right now, RWX Cloud expects the files to be prefixed with one of those names and the call to filepath.Base would have used whatever the name of the directory was.

We'll release this temporarily as v1.6.1 and then I'll get a proper change in to no longer consider the directory.

@kylekthompson kylekthompson self-assigned this Jun 12, 2025
@kylekthompson kylekthompson merged commit 2cac14b into main Jun 12, 2025
1 check passed
@kylekthompson kylekthompson deleted the kt/hard-code-dot-mint branch June 12, 2025 17:40
robinaugh added a commit that referenced this pull request Feb 18, 2026
…n sync

The skipDirs check in readRwxDirectoryEntries only matched prefixed paths
like ".rwx/downloads", but when called via rwxDirectoryEntries (the path
used for runs), relativeTo is set to the .rwx dir itself, so entry.Path
is just "downloads". Add the unprefixed names so the skip works in both
call paths.

This bug was introduced in #159 which changed the relativeTo logic but
didn't update the skipDirs values to match.
robinaugh added a commit that referenced this pull request Feb 18, 2026
…n sync

The skipDirs check in readRwxDirectoryEntries only matched prefixed paths
like ".rwx/downloads", but when called via rwxDirectoryEntries (the path
used for runs), relativeTo is set to the .rwx dir itself, so entry.Path
is just "downloads". Add the unprefixed names when relativeTo is set so
the skip works in both call paths.

This bug was introduced in #159 which changed the relativeTo logic but
didn't update the skipDirs values to match.
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

Comments